tumction returns an array oeleets that exist in onse aray but maot in awny other
ID: 3736083 • Letter: T
Question
tumction returns an array oeleets that exist in onse aray but maot in awny other arv o a array compare () s array diteo e atTay search d array mateh (u data values for input elemsents that use array sat array within the S POST autoglobal ay fie the value of the name aevbne are siored in a a. sub h nested .indexed d key If there are no indexes or keys entered in the value of the name element eys eiterd in the value of theion, PuP asigns an Inade of to the first element. b. 1 d PHP assigns no value Problem 61. Describe file types (2). file levels of access (3), and file permissions3)Explanation / Answer
arrray_diff : It computes difference of the given array and returned in the form of array.
ex:
<?php
$arr1 = array("One","Two","Three","Four","Five");
$arr2 = array("One","Two","Three");
$difference_array = array_diff($arr1,$arr2);
echo '<pre>';
print_r($difference_array);
echo '<pre>';
?>
sample output:
This $array_diff function returned the array value which is compared the differece of given $arr1 and $arr2.
The data values for input elements that use array notation for the value of the name attribute are stored in a nested array within the $_POST autoglobal array
If there are no indexes or keys entered in the value of the name attribute in a form, PHP assigns an index of __0(zero)__ to the first element.
Always assign the 0 index default in array.
filetype() function recognize the type of the file used.
ex:
<?php
echo filetype("test.txt"); //this will prints the file
echo filetype("dir"); //this will prints the dir
?>
file access level access through the user permission, access can be denied to all but the file user or owner of the file, this will give the permission to the member of group or other user.
file permission
read: perform operation on file, file of the content can view only.
write: perform operation on file either writing into file, or deleting file.
execute: perform to run an executable file.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.