Reply to Re: PHP OO Java Main Method equivalent???

Your name:

Reply:


Posted by e_matthes on 06/15/07 15:27

On Jun 15, 6:57 am, pelon <pelonbiol...@gmail.com> wrote:
> Hey!
>
> I'm new to OO in PHP but somewhat familiar with this paridigm in
> JAVA....
>
> So I was wondering if it is possible to have within a PHP script
> something equivalent to a main method as it is possible in JAVA....
>
> For example:
>
> class myclass{
> //my class's code
>
> }
>
> //Here is where I want to create a main method... or a function that
> gets automatically called when the script is executed... that way this
> "main" method would create instances of "myclass" and use them...
>
> Cheers!
>
> Jose


Have you tried a simple example?

[Back to original 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

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