User Tools

Site Tools


uphp:functions:chr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
uphp:functions:chr [2017/02/20 10:25]
jeff created
uphp:functions:chr [2021/09/13 05:57] (current)
Line 1: Line 1:
 ======chr====== ======chr======
-<badge>WMPRO, WMMINI FW > 1.0</badge> <badge>WMMEGA FW > 2.0</badge> 
  
-Return character for an ASCII code+<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> 
 + 
 +Return the character for an ASCII <html><b><span style="color:blue">code</b></html>
  
 ====Description==== ====Description====
 +
 <well size="sm"><html> <well size="sm"><html>
-<span style="font-size:125%;color:green;">string  +<span style="font-size:125%;color:green">string 
-<span style="color:black;"></html>[[chr]] <html>(  +<span style="color:black">chr ( 
-<span style="color:green;">int  +<span style="color:green">int 
-<span style="color:blue;">$code  +<span style="color:blue">$code 
-<span style="color:black;">)+<span style="color:black">)
 </html></well> </html></well>
  
-====Parameters==== +====Parameter====
-<html><span style="color:blue;"><b>code</b><span style="color:black;"></html>:  ASCII code number (1-255)+
  
-====Return Value==== +<html><b><span style="color:blue">$code<span style="color:black"></b></html>:  ASCII code number (0-255) 
-A one-character string containing the ASCII character referenced by code+ 
 +====Return Values==== 
 + 
 +A one-character <html><b><span style="color:green">string<span style="color:black"></b></html> containing the ASCII character referenced by <html><b><span style="color:blue">code</b></html>
  
 ====Example==== ====Example====
-<code php><?  + 
-$a=chr(65); +<code php> 
-print($a); //result is 'A' which is the ASCII character number 65 +<? 
-?></code>+  $a=chr(65); 
 +  print($a); // result is 'A' which is the ASCII character number 65 
 +?> 
 +</code>
  
 ====See Also==== ====See Also====
-[[ord()]] - Return ASCII code of first character in a string 
  
-[[charat()]] - Return ASCII code for character in string at index+[[ord()]] - Return the ASCII code for a character 
 + 
 +[[charat()]] - Return the ASCII code for character in a <html><b><span style="color:green">string<span style="color:black"></b></html> at an index
  
uphp/functions/chr.1487586310.txt.gz · Last modified: 2021/09/13 05:56 (external edit)