Quantcast
Channel: Codingslover Programming Blog, Tutorials, jQuery, Ajax, PHP, MySQL
Viewing all articles
Browse latest Browse all 27

How to remove the array values in php

$
0
0
    By using array_diff() function , we can remove the array values in php
    <?php

<?php
$arr_remove=array('Codingslover', 'webslessons', 'meetcity',
       'eshopoffers','google');
$arr=array_diff($arr_remove, array('webslessons', 'google'));
echo"<pre>";print_r($arr_remove);
echo"<pre>";print_r($arr);
?>


Viewing all articles
Browse latest Browse all 27

Trending Articles