User Tools

Site Tools


uphp:functions:charat

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
uphp:functions:charat [2017/03/31 12:46]
jeff
uphp:functions:charat [2017/05/09 09:58]
jeff
Line 1: Line 1:
 ======charat====== ======charat======
 +
 <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Return ASCII code for character in string at index+Return ASCII code for character in <html><b><span style="color:green">string<span style="color:black"></b></html> at index
  
 ====Description==== ====Description====
-<well size="sm"><html><span style="font-size:125%;color:green">int + 
-<span style="color:black"></html>[[charat]] +<well size="sm"><html> 
-<html>(+<span style="font-size:125%;color:green">int 
 +<span style="color:black">charat (
 <span style="color:green">string <span style="color:green">string
 <span style="color:blue">$str<span style="color:black">,  <span style="color:blue">$str<span style="color:black">, 
Line 16: Line 18:
  
 ====Parameters==== ====Parameters====
-<html><span style="color:blue"><b>$str</b><span style="color:black"></html>:  String to get character from 
  
-<html><span style="color:blue"><b>$index</b><span style="color:black"></html>:  Index into string (the first character in the string is index = 0)+<html><b><span style="color:blue">$str<span style="color:black"></b>:  <b><span style="color:green">String<span style="color:black"></b> to get character from</html> 
 + 
 +<html><b><span style="color:blue">$index<span style="color:black"></b></html>:  Index into string (the first character in the string is index = 0)
  
 ====Return Value==== ====Return Value====
-ASCII code (0-255)+ 
 +<html><b><span style="color:green">Integer<span style="color:black"></b></html> ASCII code (0-255)
  
 ====Example==== ====Example====
 +
 <code php> <code php>
 <? <?
Line 33: Line 38:
  
 ====See Also==== ====See Also====
-[[ord()]] - Return ASCII code of first character in a string+ 
 +[[ord()]] - Return ASCII code of first character in a <html><b><span style="color:green">string<span style="color:black"></b></html>
  
 [[chr()]] - Return character for an ASCII code [[chr()]] - Return character for an ASCII code
  
uphp/functions/charat.txt · Last modified: 2021/09/13 05:57 (external edit)