Tuesday, 1 August 2017

PHP Penggunaan Replace


<?php 
$string=-102454.1;
$stringpolos= preg_replace('/[^a-zA-Z0-9 ]/','',$string);
echo "$stringpolos";
?>

No comments:

Post a Comment