Last active
November 11, 2017 00:07
-
-
Save scofennell/e8a6b2367f7f0d2f2df3a681eabe3803 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
function my_array_booler( $var ) { | |
$out = array(); | |
foreach( $var as $v ) { | |
if( $v === 'true' ) { $out[] = true; continue; } | |
if( $v === 'false' ) { $out[] = false; continue; } | |
$out[]= $v; | |
} | |
return $out; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment