User Tools

Site Tools


uphp:functions:charat

Differences

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

Link to this comparison view

uphp:functions:charat [2017/03/28 20:05]
jeff
uphp:functions:charat [2021/09/13 05:57]
Line 1: Line 1:
-======charat====== 
-<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> 
- 
-Return ASCII code for character in string at index 
- 
-====Description==== 
-<well size="sm"><html><span style="font-size:125%;color:green;">int 
-<span style="color:black;"></html>[[charat]] 
-<html>( 
-<span style="color:green;">string 
-<span style="color:blue;">$str<span style="color:black;">,  
-<span style="color:green;">int 
-<span style="color:blue;">$index 
-<span style="color:black;">) 
-</html></well> 
- 
-====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) 
- 
-====Return Value==== 
-ASCII code (0-255) 
- 
-====Example==== 
-<code php> 
-<? 
-  $str="Test String"; 
-  $ascii=charat($str,5); 
-  print($ascii); // result is 83 
-?> 
-</code> 
- 
-====See Also==== 
-[[ord()]] - Return ASCII code of first character in a string 
- 
-[[chr()]] - Return character for an ASCII code 
  
uphp/functions/charat.txt · Last modified: 2021/09/13 05:57 (external edit)