2017-11-16 1 views
-4

Ich habe ein Problem beim Entfernen eines bestimmten Felds aus meinen verschachtelten Arrays. biete ich Ihnen ein Beispiel für meine Arrays:Array für Schleife überspringen

Array 

     (
      [0] => Array 
       (
        [no] => 1 
        [id] => 4 
        [cmp_name] => dimple 
        [group_code] => 35727748 
        [dd_name] => 
        [email_id] => [email protected] 
        [mobile_no] => 9971858674 
        [additional_email] => 
        [additional_mobile] => 
        [email_status] => Sent 
        [sms_status] => 0 
        [read_status] => <i class='fa fa-square-o' style='font-size:30px;color:red'></i> 
        [mail_acceptence] => <i class='fa fa-thumbs-o-down' style='font-size:30px;color:red'></i> 
        [sms_acceptence] => 0 
        [action] => <a href='#' data-toggle='modal' data-target='#template_detail_1' class='btn btn-info btn-xs pop' data-placement='top' title='dimple'><i class='fa fa-list-alt'></i></a><button class='btn btn-danger btn-xs delete-swl' data-toggle='tooltip' data-placement='top' title='4' ><i class='fa fa-trash-o'></i></button> 
       ) 

      [1] => Array 
       (
        [no] => 2 
        [id] => 4 
        [cmp_name] => dimple 
        [group_code] => 35727748 
        [dd_name] => 
        [email_id] => [email protected] 
        [mobile_no] => 9971858674 
        [additional_email] => 
        [additional_mobile] => 
        [email_status] => Sent 
        [sms_status] => 0 
        [read_status] => <i class='fa fa-check-square-o' style='font-size:30px;color:green'></i> 
        [mail_acceptence] => <i class='fa fa-thumbs-o-up' style='font-size:30px;color:green'></i> 
        [sms_acceptence] => 0 
        [action] => <a href='#' data-toggle='modal' data-target='#template_detail_1' class='btn btn-info btn-xs pop' data-placement='top' title='dimple'><i class='fa fa-list-alt'></i></a><button class='btn btn-danger btn-xs delete-swl' data-toggle='tooltip' data-placement='top' title='4' ><i class='fa fa-trash-o'></i></button> 
       ) 
     } 

Ich möchte Read_Status von meinen beiden verschachtelten Arrays entfernen.

+4

Große, was ist Ihre Frage? –

+0

Dann 'unset' read_status .. Eine einfache Google-Suche hätte dies behoben – Akintunde007

+0

Rewrite Ihre Frage klar und unkompliziert – AntonTkachov

Antwort

Verwandte Themen