note 106191 deleted from ref.strings by danbrown
| From: | danbrown@php.net | Date: | Tue, 18 Oct 2011 14:47:10 +0000 |
| Subject: | note 106191 deleted from ref.strings by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183971@lists.php.net to get a copy of this message | ||
Note Submitter: igz dot dwd dot 20 at gmail dot com
----
Here is a small encoding-decoding for sending private messages. Change it according to the need.
<?php
echo $str="The quick brown fox jumps over the lazy dog";
echo "<br/>";
for($i=0;$i<2;$i++)
{
$str=strrev($str);
$str=str_split($str, (strlen($str)/2));
$str[0]=strrev($str[0]);
$str[1]=strrev($str[1]);
$str=join("", $str);
echo $str=strrev($str);
echo "<br/>";
}
?>
Hope that you'll enjoy.