-
Jul 11th, 2006, 10:33 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] What is...
... the value of $result?
PHP Code:
$1['1'] = 1 ;
$1['2'] = 24 ;
$1['3'] = 5 ;
$result = $1['1'] / $1['2'] * $1['3'] - $1['1'] ;
-
Jul 11th, 2006, 10:37 AM
#2
Re: What is...
0.98
or
-0.7916666...
or
42
-
Jul 11th, 2006, 10:40 AM
#3
Thread Starter
Hyperactive Member
Re: What is...
Originally Posted by sevenhalo
0.98
WRONG The correct answer is "" (Without quotes).
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
PHP Code:
$a['1'] = "1" ;
$a['2'] = "24" ;
$a['3'] = "5" ;
$result = $a['1'] / $a['2'] * $a['3'] - $a['1'] ;
Anyway, for arguments sake, the correct answer, with correct code (Above) is actually -0.791666666667.
Thank you for resolving my thread.
-
Jul 11th, 2006, 10:42 AM
#4
Hyperactive Member
Re: [RESOLVED] What is...
-
Jul 11th, 2006, 10:42 AM
#5
Thread Starter
Hyperactive Member
Re: [RESOLVED] What is...
-
Jul 11th, 2006, 10:43 AM
#6
Re: [RESOLVED] What is...
-
Jul 11th, 2006, 10:44 AM
#7
Hyperactive Member
Re: [RESOLVED] What is...
Lol!
...Hey, wait a minute...
-
Jul 11th, 2006, 10:44 AM
#8
Thread Starter
Hyperactive Member
Re: [RESOLVED] What is...
Originally Posted by sevenhalo
PHP still sucks.
Just because you didn't know the answer!
-
Jul 11th, 2006, 10:45 AM
#9
Re: [RESOLVED] What is...
If PHP didn't suck, I would have been right.
-
Jul 11th, 2006, 10:45 AM
#10
Thread Starter
Hyperactive Member
Re: [RESOLVED] What is...
Originally Posted by Datacide
Lol!
...Hey, wait a minute...
Who the hell allowed you into my thread?
-
Jul 11th, 2006, 10:46 AM
#11
Thread Starter
Hyperactive Member
Re: [RESOLVED] What is...
Originally Posted by sevenhalo
If PHP didn't suck, I would have been right.
No because I wrote wrong code... The strings were not defined properlylylylyly!
-
Jul 11th, 2006, 10:50 AM
#12
Hyperactive Member
Re: [RESOLVED] What is...
Originally Posted by ..:RUDI:..
Who the hell allowed you into my thread?
PHP Code:
mysql_query(DELETE FROM VBFMembers WHERE username=.:RUDI:.");
-
Jul 11th, 2006, 10:54 AM
#13
Thread Starter
Hyperactive Member
Re: [RESOLVED] What is...
-
Jul 11th, 2006, 11:23 AM
#14
Re: [RESOLVED] What is...
Originally Posted by ..:RUDI:..
What is...
love, baby don't hurt me... don't hurt me... no more.
-
Jul 11th, 2006, 11:27 AM
#15
Thread Starter
Hyperactive Member
Re: [RESOLVED] What is...
Originally Posted by mendhak
baby don't hurt me... don't hurt me... no more.
Okay !
-
Jul 11th, 2006, 11:28 AM
#16
Re: [RESOLVED] What is...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|