jonaofarc Posted August 18, 2009 Share Posted August 18, 2009 how can I make this array Array ( [0] => e2acfb0606d1e8f994b687fd8de5b032 [jewpage_id] => e2acfb0606d1e8f994b687fd8de5b032 [1] => lo [name] => lo [2] => ocation... [description] => ocation... [3] => 0000-00-00 [date] => 0000-00-00 [4] => asd [address] => asd [5] => [contact] => [6] => 41.1265328 [log] => 41.1265328 [7] => -74.0640814 [lat] => -74.0640814 [8] => GA [state] => GA [9] => MONSEY [city] => MONSEY [10] => 91401 [zip] => 91401 [11] => upload/e2acfb0606d1e8f994b687fd8de5b032 [pic1] => upload/e2acfb0606d1e8f994b687fd8de5b032 [12] => upload/e2acfb0606d1e8f994b687fd8de5b032 [pic2] => upload/e2acfb0606d1e8f994b687fd8de5b032 [13] => 10 [post_user] => 10 [14] => Wytr [type] => Wrty [15] => [section] => [16] => expensive [price] => expensive [17] => [homepage] => [18] => 0 [rating] => 0 [19] => 0 [category_id] => 0 ) look like Array ( [0] => Array ( [jewpage_id] => e2acfb0606d1e8f994b687fd8de5b032 [name] => lo [description] => ocation... [date] => 0000-00-00 [address] => 250 Kearsing Pkwy [contact] => [log] => 41.1265328 [lat] => -74.0640814 [state] => GA [city] => MONSEY [zip] => 91401 [pic1] => upload/e2acfb0606d1e8f994b687fd8de5b032 [pic2] => upload/e2acfb0606d1e8f994b687fd8de5b032 [post_user] => 10 [type] => Wedding Flowers [section] => [price] => expensive [homepage] => [rating] => 0 [category_id] => 0 ) ) Quote Link to comment https://forums.phpfreaks.com/topic/170915-formatting-array-question/ Share on other sites More sharing options...
mikesta707 Posted August 19, 2009 Share Posted August 19, 2009 hahaha jew page. $array = Array ( "" => Array ( 'jewpage_id' => e2acfb0606d1e8f994b687fd8de5b032, 'name' => lo, 'description' => ocation..., 'date' => 0000-00-00, 'address' => 250 Kearsing Pkwy, 'contact' => '', 'log' => 41.1265328, 'lat' => -74.0640814, 'state' => GA, 'city' => MONSEY, 'zip' => 91401, 'pic1' => upload/e2acfb0606d1e8f994b687fd8de5b032, 'pic2' => upload/e2acfb0606d1e8f994b687fd8de5b032, 'post_user' => 10, 'type' => Wedding Flowers, 'section' => "", 'price' => expensive, 'homepage' => "", 'rating' => 0, 'category_id' => 0 )); ? that should work that array is kind of screwy though.. has a bunch of empty elements, and the first index is null Quote Link to comment https://forums.phpfreaks.com/topic/170915-formatting-array-question/#findComment-901462 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.