Use the ord function
eg.
<?php
$var = "nÖ§9q1Fª£ˆæÓ§Œ_»—Ló]j";
for($i = 0; $i < strlen($var); $i++)
{
echo ord($var[$i])."<br/>";
}
?>
More Related Contents:
- How to remove accents and turn letters into “plain” ASCII characters? [duplicate]
- Find a match pattern of any digit and space with any character in a string and replace with | in PHP [closed]
- How to fix “warning illegal string”?
- What is the difference between single-quoted and double-quoted strings in PHP?
- Make all words lowercase and the first letter of each word uppercase
- Truncate a string to first n characters of a string and add three dots if any characters are removed
- What kind of string is this? How do I unserialize this string? [duplicate]
- Array to String PHP?
- How to select first 10 words of a sentence?
- php implode (101) with quotes
- Question about strpos: how to get 2nd occurrence of a string?
- How to convert string to boolean php
- Single quotes or double quotes for variable concatenation? [closed]
- Str_replace for multiple items
- Best Practices: working with long, multiline strings in PHP?
- How to handle double quotes in string before XPath evaluation?
- Escape string to use in mail()
- How can I split a string in PHP at the nth occurrence of a needle?
- Getting the first character of a string with $str[0]
- PHP: Split multibyte string (word) into separate characters
- What does the b in front of string literals do?
- Highlight keywords in a paragraph
- Search and replace multiple values with multiple/different values in PHP5?
- Explode string into array with no empty elements?
- Get the sum of all digits in a numeric string
- How to separate letters and digits from a string in php
- How does PHP compare strings with comparison operators?
- How to validate that a string only contain lowercase letters?
- Regex to match an IP address [closed]
- How do I detect non-ASCII characters in a string?