TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   2 questions (http://www.talkphp.com/absolute-beginners/3353-2-questions.html)

Yoosha 09-12-2008 05:56 PM

2 questions
 
Hi again,
What is diff. between ^ VS -?
Also what is function _X(&XXX)

BJ Duncan 09-13-2008 12:27 PM

Can you provide examples with your questions please. I don't understand your questions.

Yoosha 09-14-2008 07:15 AM

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));
}

Salathe 09-14-2008 10:25 AM

For the first two operators: http://php.net/operators.bitwise (^) and http://php.net/operators.arithmetic (-)
For the & operator: http://php.net/references.pass

Those manual pages should provide enough information to understand what's going on, if not just ask here.


All times are GMT. The time now is 06:36 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0