You are here: Re: [PHP] problems using chr() in an Object « PHP « IT news, forums, messages
Re: [PHP] problems using chr() in an Object

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация