You can use the PHP array_push() function to insert one or more elements or values at the end of an array. Let's try out an example and see how this function works:
<?php
$skills = array("HTML5", "CSS3", "JavaScript");
// Append array with new items
array_push($skills, "jQuery", "PHP");
print_r($skills);
?>
Use the PHP
array_push()functionYou can use the PHP
need an explanation for this answer? contact us directly to get an explanation for this answerarray_push()function to insert one or more elements or values at the end of an array. Let's try out an example and see how this function works: