This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
uphp:functions:charat [2017/02/20 09:56] jeff |
uphp:functions:charat [2021/09/13 05:57] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======charat====== | ======charat====== | ||
| - | < | ||
| - | Return ASCII code for character in string at index | + | < |
| + | |||
| + | Return | ||
| ====Description==== | ====Description==== | ||
| + | |||
| <well size=" | <well size=" | ||
| - | <span style=" | + | <span style=" |
| - | <span style=" | + | <span style=" |
| - | <span style=" | + | <span style=" |
| - | <span style=" | + | <span style=" |
| - | <span style=" | + | <span style=" |
| - | <span style=" | + | <span style=" |
| - | <span style=" | + | <span style=" |
| </ | </ | ||
| ====Parameters==== | ====Parameters==== | ||
| - | < | ||
| - | < | + | <html><b>< |
| - | ====Return | + | < |
| - | ASCII code (1-255) | + | |
| + | ====Return | ||
| + | |||
| + | < | ||
| ====Example==== | ====Example==== | ||
| - | <code php><? | + | |
| - | $str=" | + | <code php> |
| - | $ascii=charat($str, | + | <? |
| - | print($s); // result is 83 | + | $str=" |
| - | ?></ | + | $ascii=charat($str, |
| + | print($ascii); // result is 83 | ||
| + | ?> | ||
| + | </ | ||
| ====See Also==== | ====See Also==== | ||
| - | [[ord()]] - Return ASCII code of first character in a string | ||
| - | [[chr()]] - Return character for an ASCII code | + | [[ord()]] - Return the ASCII code for a character |
| + | |||
| + | [[chr()]] - Return | ||