php regex city state zip

omerblink

New Member
this is from an array i have\[code\] [citystatezip] => New York, NY 50805-2578\[/code\]i'm trying to have it in the format below\[code\][city] => New York[state] => NY[zip] => 50805-2578\[/code\]i was using regex in php..but got nowhere.thanks for the help.
 
Back
Top