Re: problems using chr() in an Object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-----------------------------------------------------------------

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux