array_push()
functionYou 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);
?>
Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]
JWT Token Based Authentication API in NodeJs
Welcome, programming, buddies! Today, In...Angular 9 - CRUD Example with PHP and MySql
In this tutorial, you'll learn to en...How to show and hide div elements based on the click of checkboxes in jQuery
Use the jQuery toggle() method The fo...How to get Last Record From leftJoin Table in Laravel7?
In this article i will share with you on...Laravel 8 - jQuery Ajax File Upload with Progress Bar Tutorial
In this article, i will share with you h...