note 80143 added to function.str-rot13
| From: | grawity+phpnet at gmail dot com | Date: | Mon, 31 Dec 2007 13:39:28 +0000 |
| Subject: | note 80143 added to function.str-rot13 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-134623@lists.php.net to get a copy of this message | ||
resubmitting updated function in re:#76975
<?php
function asc_shift($str,$offset=0) {
$new = '';
for ($i = 0; $i < strlen($str); $i++)
$new .= chr(ord($str[$i])+$offset);
return $new;
}
?>
because as of PHP 6, $str{$i} is deprecated.
----
Server IP: 193.46.83.2
Probable Submitter: 78.56.68.25
----
Manual Page -- http://www.php.net/manual/en/function.str-rot13.php
Edit -- https://master.php.net/note/edit/80143
Del: integrated -- https://master.php.net/note/delete/80143/integrated
Del: useless -- https://master.php.net/note/delete/80143/useless
Del: bad code -- https://master.php.net/note/delete/80143/bad+code
Del: spam -- https://master.php.net/note/delete/80143/spam
Del: non-english -- https://master.php.net/note/delete/80143/non-english
Del: in docs -- https://master.php.net/note/delete/80143/in+docs
Del: other reasons-- https://master.php.net/note/delete/80143
Reject -- https://master.php.net/note/reject/80143
Search -- https://master.php.net/manage/user-notes.php