0

before that i upload values using implode(),after that i need display that array values.
below this code showing array values as in single variable.Click Here

see that page i added 5 categories but it displayed in single variable, i want to separate it, becaz that ids are different

        category:Pediatrician,ayurveda,skin Care,optical,yoga,
           Address  :   sgdrg 12 0



$place = $row['category_id'];
        $arr = array($place);
        foreach($arr as $place1) 
        echo $place1;
2
Contributors
3
Replies
18
Views
3 Years
Discussion Span
Last Post by malatamil
1

you can use explode if you want.

$this_category = explode(',' , $row['category_id']);

    foreach($this_category as $cat){
        echo $cat.'<br/>';
        }

or if you want to become creative , you can do it like this

foreach((explode(',',$row['category_id'])) as $cat){

    echo $cat.'<br/>';

    }
0

thanks but if i try this am getting last value only i could't get whole value

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.