hi,
just like you have substr() to get part of a string, is there a way to get part of an integer?
If I have something like:
$myVar = 20060103142005;
// and want
$myVar = 20060103;
what's the best way to do it?
$myVar = 20060103142005;
$myVar = substr ($myVar, 0, 8);
echo $myVar;
doesn't work.
Trying to convert the number to a string doesn't work either:
$myVar = 20060103142005;
settype( $myVar, 'string');
$myVar = substr ($myVar, 0, 8);