... the value of $result?
PHP Code:$1['1'] = 1 ;
$1['2'] = 24 ;
$1['3'] = 5 ;
$result = $1['1'] / $1['2'] * $1['3'] - $1['1'] ;
Printable View
... the value of $result?
PHP Code:$1['1'] = 1 ;
$1['2'] = 24 ;
$1['3'] = 5 ;
$result = $1['1'] / $1['2'] * $1['3'] - $1['1'] ;
0.98
or
-0.7916666...
or
42
WRONG The correct answer is "" (Without quotes).Quote:
Originally Posted by sevenhalo
The code doesn't parse:
Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/mage/public_html/rvcom/vbf.php on line 2
Anyway, for arguments sake, the correct answer, with correct code (Above) is actually -0.791666666667.PHP Code:$a['1'] = "1" ;
$a['2'] = "24" ;
$a['3'] = "5" ;
$result = $a['1'] / $a['2'] * $a['3'] - $a['1'] ;
Thank you for resolving my thread.
:ehh:
:wave:
PHP still sucks.
Lol!
...Hey, wait a minute... :mad:
Just because you didn't know the answer! :afrog:Quote:
Originally Posted by sevenhalo
If PHP didn't suck, I would have been right.
Who the hell allowed you into my thread? :mad:Quote:
Originally Posted by Datacide
No because I wrote wrong code... :wave: The strings were not defined properlylylylyly! :)Quote:
Originally Posted by sevenhalo
Quote:
Originally Posted by ..:RUDI:..
:bigyello:PHP Code:mysql_query(DELETE FROM VBFMembers WHERE username=.:RUDI:.");
That wouldn't work...Quote:
Originally Posted by Datacide
1. That's not my username.
2. You have no connection.
3. You have no database selection.
4. vBulletin doesn't use table VBFMembers.
5. You didn't define the string properly "" was only ".
6. .:RUDI:. should have been '.:RUDI:.', if of course .:RUDI:. was my username.
NOW GET OUT OF MY THREAD!!! :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad:
love, baby don't hurt me... don't hurt me... no more.Quote:
Originally Posted by ..:RUDI:..
Okay :wave: !Quote:
Originally Posted by mendhak
This thread is lystig.