exploding values into new variables

From: Date: Mon, 28 Oct 2002 08:33:54 +0000
Subject: exploding values into new variables
Groups: php.general 
Request: Send a blank email to php-general+get-121655@lists.php.net to get a copy of this message
Hi The manual states: $pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode(" ", $pizza); So, if I want to be able to echo piece1 to the screen at a later stage, I would go: echo $pieces[0]; or $first_piece = $pieces[0]; echo $first_piece; Right? Just want to make sure I understand it before I try to use it...

« previous php.general (#121655) next »