What is the ideal method of copying data between two opened files?
copy($source_file, $destination_file);
copy(destination_file, $source_file);
stream_copy_to_stream($source_file, $destination_file);
stream_copy_to_stream($destination_file, $source_file);
stream_bucket_prepend($source_file, $destination_file);
What XML component does the following XPath query try to match?
//foo[bar/@id=5]
bar element with an id attribute whose value is equal to 5
foo element containing a child node bar tag
id attribute whose value is equal to 5
foo element with a child note bar whose id attribute is equal to 5
all of the foo elements that have a child node bar, whose id attribute is equal to 5
What does the chown() function do?
Change the file permissions.
Change the owner of the file.
Change the group of the file.
Checks if the file is accessible.
An object can be counted with count() and sizeof() if it
implements ArrayAccess
has a public __count() method
was cast to an object from an array
None of the above