Created
December 12, 2013 13:09
-
-
Save lunetics/7927699 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$var= "123_456"; | |
$intval = intval($var); | |
$trim = trim($var); | |
var_dump($intval); // returns int(123) | |
var_dump($trim); // returns "123_456" | |
var_dump($intval == $trim); // true or false? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment