Function Troubles!

From: Date: Mon, 05 Aug 2002 05:44:39 +0000
Subject: Function Troubles!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-111145@lists.php.net to get a copy of this message
I'm having trouble with a function I've been working on - I can't seem to get the learn() function to trigger! Is there a flaw in my logic? Here's my code: <? function damn_it_all_to_hell($poster, $anotherpost) { if ( is_constructive($anotherpost) ) { echo $anotherpost; if(strpos($anotherpost, 'answer')) { learn(); // <-- this is where my problems are } else { teach(); } } if ( is_worthless($anotherpost) || strpos($anotherpost, $complaint) ) { block_poster($poster); unset($anotherpost); die; } } damn_it_all_to_hell($this_poster, $this_message); ?> Your words and actions will either encourage, educate, and entertain, or discourage, mislead, and depress. The former has always worked better for me. Dave p.s. - I know this isn't the philosophy list, but see damn_it_all_to_hell() above for a useful function.

« previous php.general (#111145) next »