|
Posted by Martn Marqus on 04/28/05 15:44
El Jue 28 Abr 2005 09:42, Jochem Maas escribió:
> Martín Marqués wrote:
> > I have an object class in which I'm doing chr() calls, especifically in
the
> > definition of some variables, and when loading the class I get this error:
> >
> > Parse error: parse error, unexpected '(', expecting ',' or ';' in
Ticket.inc
> > on line 51
> >
> > Line 51 has:
> >
> > var $textoInicio = chr(27) . chr(64);
>
> you can only assign 'basic' values (types) to vars in the class definition
> (so no function calls) . e.g:
Yes, that's how I solved it just a minute ago, even though I didn't understand
why. Thanks for the enlightenment. :-)
BTW does PHP5 let you assign function values in the variable definition (like
C++)?
--
09:42:14 up 26 days, 18:11, 3 users, load average: 0.40, 0.49, 0.60
-----------------------------------------------------------------
Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica | DBA, Programador, Administrador
Universidad Nacional
del Litoral
-----------------------------------------------------------------
[Back to original message]
|