Answers for "unshift in php"

PHP
1

unshift in php

<?php
	$a=array("a"=>"red","b"=>"green");
	array_unshift($a,"blue");
	print_r($a);
// result : Array ( [0] => blue [a] => red [b] => green )

?>
Posted by: Guest on May-12-2021
1

array unshift php

<?php

 $a=array("a"=>"red","b"=>"green");
array_unshift($a,"blue");
print_r($a);

?>
Posted by: Guest on March-29-2021

Browse Popular Code Answers by Language