Saturday, 8 July 2017

PHP array replace Function







SOURCE CODE





<?php



//The array_replace() function replaces the elements of the

//first array with the elements from following arrays.



$arrone = array("aston martin", "ferrari");

$arrtwo = array("landrover discovery", "Toyota");



$arrreplace = array_replace($arrone, $arrtwo);



echo "<pre>";

print_r($arrreplace);

echo "</pre>";



?>

1 comment:

  1. I would like to thank you for the efforts you have made in writing this article for php web development. I am hoping the same best work from you in the future as well.

    ReplyDelete

Netbeans 8.2 Installation Error ( Java Se Development Kit (JDK) Was Not Found On This Computer )

Go to the directory where the exexutable file is located using CMD then enter the name of the file and the path for jdk. Run this command...