Exemple #1
0
 /**
  * Returns ROT13-encoded version
  *
  * @param string $key
  * @return mixed
  * @tag hash
  */
 public function getROT13($key)
 {
     if (!$this->keyExists($key)) {
         return false;
     }
     return Inspekt::getROT13($this->_getValue($key));
 }
echo "</pre>\n";
?>


<h2>Inspekt::getDigits($d)</h2>
<?php 
$newd = Inspekt::getDigits($d);
echo "<pre>";
echo var_dump($newd);
echo "</pre>\n";
?>


<h2>Inspekt::getROT13($d)</h2>
<?php 
$newd = Inspekt::getROT13($d);
echo "<pre>";
echo var_dump($newd);
echo "</pre>\n";
?>


<h2>Create a cage for the array</h2>
<?php 
$d_cage = Inspekt_Cage::Factory($d);
?>


<h2>$d_cage->getAlpha('/x/woot/ultimate')</h2>
<?php 
echo "<pre>";
 /**
  * 
  */
 public function testGetROT13()
 {
     $input = 'I am not an animal!';
     $expect = 'V nz abg na navzny!';
     $this->assertSame($expect, Inspekt::getROT13($input));
 }
Exemple #4
0
 /**
  * Returns ROT13-encoded version
  *
  * @param string $key
  * @return mixed
  * @throws Exception
  * @tag hash
  */
 public function getROT13($key)
 {
     return Inspekt::getROT13($this->getValue($key));
 }