getDigits() public static method

Returns only the digits in value.
public static getDigits ( mixed $value ) : mixed
$value mixed
return mixed
$newd = Inspekt::noTags($d);
echo "<pre>";
var_dump($newd);
echo "</pre>\n";
?>


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


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


<h2>Inspekt::getROT13($d)</h2>
<?php 
$newd = Inspekt::getROT13($d);
echo "<pre>";
var_dump($newd);
echo "</pre>\n";
Beispiel #2
0
 /**
  * Generated from @assert ('1)@*(&UR)HQ)56W(*(HG))') === '156'.
  */
 public function testGetDigits()
 {
     $this->assertSame('156', Inspekt::getDigits('1)@*(&UR)HQ)56W(*(HG))'));
 }