array_unshift()
functionYou can use the PHP array_unshift()
function to insert one or more elements or values to the beginning of an array. Let's check out an example to see how it works:
<?php
$skills = array("HTML5", "CSS3", "JavaScript");
// Prepend array with new items
array_unshift($skills, "Illustrator", "Photoshop");
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]
No application encryption key has been specified.
Today i will share with you one of the c...Remove a Property from a JavaScript Object
Javascript object is pair of key/value....Fullcalendar 4 Remove Event Example
In this example, i will show you fullcal...How to enable SSH access in Cpanel and connect to remote server
When working on Cpanel server, sometimes...Laravel 8 - Livewire Load More On Page Scroll Step by Step
in this article, you'll learn how to...