How do I delete a specific item by using array_splice/array_slice in PHP?
for example:
array(‘a’,’b’,’c’);
how to just delete ‘b’?
so the array remains:
array(‘a’,’c’);
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Basically: Just do it.
The manual has good examples like this one:
if something doesn’t work out for you, please add more detail to your question.