Re: [PHP] php 4 to 5

2004-11-28 Thread Michael Leung
Hi all, I am developing a new application in PHP 5. OO design is so great! If you are developing a new application, I think you can have a look on PHP 5. yours, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 4 to 5

2004-11-28 Thread Curt Zirzow
* Thus wrote Travis Conway: > I do not know much about the history of php and do not know why there is > active development on both the 4 and 5 major versions, but is there a > definite reason for me to migrate from 4 to 5 on my servers? The active development on php4 is strictly to fix bugs or

[PHP] php 4 to 5

2004-11-28 Thread Travis Conway
I do not know much about the history of php and do not know why there is active development on both the 4 and 5 major versions, but is there a definite reason for me to migrate from 4 to 5 on my servers? Trav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] PHP 4 to 5 class issues involving static methods and $this

2004-11-17 Thread Klaus Reimer
Chris wrote: How can I rewrite my class for PHP 5 to emulate the functionality I had in PHP 4 in an error free way? Have you tried this: function format_string($string) { // format the string... $result = string; if (isset($this)) $this->elements[] = $result; return $result; } In

[PHP] PHP 4 to 5 class issues involving static methods and $this

2004-11-17 Thread Chris
I have a class where I need to be able to use the methods as static methods as well as using them inside an initialized class. Here's an example of what I need to do: class my_class { var $elements = array(); // holds all of my elements function format_string($string) {