remove specific value to the array using array_diff in php

technical talkiess
0

 <!DOCTYPE html>

<html>

<body>


<?php


$months = array('jan', 'feb', 'march', 'april', 'may','jun','july','augest','sep','oct','nov','decem');

$delete_month = 'sep';

$fvalue = array_diff($months,array($delete_month));


print_r($fvalue);

?> 


</body>

</html>


Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)