Thread: 2 questions
View Single Post
Old 09-14-2008, 07:15 AM   #3 (permalink)
Yoosha
The Contributor
 
Join Date: May 2008
Location: Iran
Posts: 53
Thanks: 33
Yoosha is on a distinguished road
Default

public function _Unshift_Assoc(&$Ary_Input, $Str_Key, $Int_Element)
{
if(!is_array($Ary_Input) || !is_string($Str_Key) || !is_integer($Int_Element) || strlen((string)$Str_Key) > 255 || strlen((string)$Int_Element) > 255 || $this->_Is_Blank($Str_Key) || $this->_Is_Blank($Int_Element)) return((boolean)false);
$Ary_Input= @array_reverse($Ary_Input, true);
$Ary_Input[$Str_Key]= $Int_Element;
$Ary_Input= @array_reverse($Ary_Input, true);
return((integer)count($Ary_Input));
}
Send a message via Yahoo to Yoosha
Yoosha is offline  
Reply With Quote