Verification: a143cc29221c9be0

Php ascii code to symbol

chr function example

Display the ASCII value from Decimal number

";
	
	$ascii2 = chr(97);
    echo "ASCII value of  97 is : $ascii2
"; $ascii3 = chr(61); echo "ASCII value of 61 is : $ascii3
"; $ascii4 = chr(42); echo "ASCII value of 42 is : $ascii4
"; ?>
  • Example
  • Run

Explanation

Print the character of ASCII value using the chr() function,The chr() function always returns a character

In this example first create a variable and assign chr (number).

Number is what, number is nothing just an integer that you want to find the ASCII value.

ord function example