23.3 C
New York
Wednesday, August 17, 2022

How to remove specific value from php array?

- Advertisement -





When i was working on my code PHP project, at that time i need to remove specific items value from my array. i did google search and solve that but i would like to share in my site how to remove value from array. so, let’s see how to use:

Example:

$myArray = array('php', 'laravel', '.net', 'java', 'c#', 'javascript');

$myArray = array_diff($myArray, array('laravel'));

print_r($myArray);

- Advertisement -

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles