Convert the decimal values 43 and 61 to add the ASCII Characters: + and = in PHP

Description

The following code shows how to convert the decimal values 43 and 61 to add the ASCII Characters: + and =.

Example


// w  w w  .ja  v  a  2 s  .c o  m
<?php
   $str = chr(43);
   $str2 = chr(61);
   echo("2 $str 2 $str2 4");
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Data Types »




Array
Array Associative
Array Util
ArrayObject
Data Types
Date
Date Format
DateTime
Number
String
String Escape
String Filter
String HTML
String Type
Timezone