I also thought it was useful & Rasmus & The others @ the php project just overlooked it 🙂
There's a few others too....
isEven - return (abs((int) $value) % 2 == 0) ? true : false;
isOdd - return (isEven($num)) ? false : true;
insert_str -
function insert_str($substring,$source,$position){
$left=substr($source,0,$position);
$right=substr($source,$position+1,strlen($source));
return $left.$substring.$right;
} # end function
I thought these wre a few ....