yeahz Posted April 4, 2009 Report Share Posted April 4, 2009 (edited) function funkcija($value,$time = time()) { ... } Ko lai iesāk, ja neļauj izmantot to time() funkciju? Ir sanācis tā, ka man tajā f-jā kā kuru reizi, vajag pašreizējo laiku vai citu laiku, mēģināju likt visādus mainīgos gan pirms funkcijas gan kā global. Risinājums? errors saka šo: Parse error: syntax error, unexpected '(', expecting ')' in C:\AppServ\www\...\functions.php on line 33 Edited April 4, 2009 by yeahz Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted April 4, 2009 Report Share Posted April 4, 2009 function funkcija($value,$time = null) { if($time === null) { $time = time(); } .. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.