Skip to content

Instantly share code, notes, and snippets.

@lunetics
Created December 12, 2013 13:09
Show Gist options
  • Save lunetics/7927699 to your computer and use it in GitHub Desktop.
Save lunetics/7927699 to your computer and use it in GitHub Desktop.
<?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