note 30501 rejected from function.explode by betz

From: Date: Thu, 20 Mar 2003 13:48:19 +0000
Subject: note 30501 rejected from function.explode by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-45553@lists.php.net to get a copy of this message
How to do that with the explode function : $stringtoexplode = "Smith;26;90"; $col_headers[0] = "Name"; $col_headers[1] = "Age"; $col_headers[2] = "Weight"; $info = explode(";",$stringtoexplode); ****** I obtain : $info[0]="Smith" $info[1]="26" $info[2]="90" ********* but I want : $info["Name"]="Smith" $info["Age"]="26" $info["Weight"]="90"

« previous php.notes (#45553) next »