norteh explode

From: Date: Tue, 14 Jan 2003 16:20:40 +0000
Subject: norteh explode
Groups: php.general 
Request: Send a blank email to php-general+get-131577@lists.php.net to get a copy of this message
okay guys i have this script to use the first exploded part as the trigger then the rest sent in a msg, ive got the trigger but its just the message part im having probs with, how do i make it so anything after x is sent; in this i need $text to be set as it, any sort of help is greatly appreciated :-) /*CODE*/ <?php $string = "blah foo bar foo"; $ex = explode(" ",$string); if ($ex[0] == "blah") { $txt = "$ex[1] $ex[2] etc"; irc_privmsg($nick, $txt); } ?> - CS

« previous php.general (#131577) next »