Reply to Argument

Your name:

Reply:


Posted by Jamie on 11/19/36 11:45

Hello Newsgroup,

I'm attempting to try some stuff in PHP 4.3.2 (Old.. old version)

Basically I have something like this:

class MyClass {
function someMethod($a,$b){
echo "[$a, $b]";
}
function foot() {
// someMethod sees "Dog","Dog" ?????????????
$this->someMethod("Cat","Dog");
$file = $this->filename();
include($file);
}

}
--------------------------------------------
filename.php:
html stuff.... this gets included from the foot() method.
<?php $this->foot(); ?>
---------------------------------------------


In the above code, both $a AND $b are set to "Dog".

If I have:

someMethod($a, $b = FALSE) { }

Both $a and $b are FALSE.

The above works fine in PHP 5.n but NOT earlier versions.

I've tried other methods, sometimes they work, sometimes not
with seemingly little rhyme nor reason.


What functions, if any, are causing $a and $b to BOTH be set
to "Dog" ???

Jamie
--
http://www.geniegate.com Custom web programming
guhzo_42@lnubb.pbz (rot13) User Management Solutions

[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

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