Answers for "how to add different array from one variable to another variable php"

PHP
2

how to add two array in single array without repetation in php

<?php
	$array1=array("CPU","Mouse","Monitor");
	$array2=array("Key-Board","Monitor","Printer");
	$array = array_unique(array_merge($array1, $array2));
	print_r($array);
?>
Posted by: Guest on October-24-2020
-2

how to append one array to another array in php

((data.userDetails.profile_picture === null) ||(data.userDetails.profile_picture===undefined))? picture ='<div><img src="http://commondatastorage.googleapis.com/codeskulptor-assets/lathrop/nebula_brown.png"' :
          picture = '<img src="'+data.userDetails.profile_picture+ '"/>';
Posted by: Guest on September-04-2020

Code answers related to "how to add different array from one variable to another variable php"

Browse Popular Code Answers by Language