View Single Post
  #1  
Old 03-21-2008, 02:06 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
'var', what's up with 'var'?

lets see..

PHP Code:
for(temp.var : {"rawr,rawr,rawr"}) {
  echo(var);
}
/*
error: unexpected token: var at line 2: echo(var);
error: unexpected token: ) at line 2: echo(var);
*/ 
Now, what's wrong with that? It was working perfectly before

Using var can't be used anywhere any longer?
And is now being used as:
PHP Code:
var foo 2;
echo(
foo); 
similar to javascript? hmm?

What's with the sudden use of var? I now have to rescript all scripts on Symphonia just because the use the word VAR...

PHP Code:
function test(var) {
  echo(var);
}
/*
error: unexpected symbol var at line 1: function test(var) {
*/ 

So, yet again I have to ask, whats with the sudden use of var?
__________________

Last edited by Chompy; 03-21-2008 at 04:48 PM..
Reply With Quote