MCQs
Its prototype is string fgets(resource handle [, int length]). If the optional length parameter is omitted, 1024 character is assumed.
fgetss()
file_get_contents()
Its prototype is int touch(string filename [, int time [, int atime]]). It returns TRUE on success or FALSE on error.
fwrite()
The wordwrap() function wraps a string into new lines when it reaches a specific length.
Many people use the md5() function for this, even though it's not exactly meant for this purpose. uniqueid() is the function that is to be used.
The ord() function returns the ASCII value of the first character of a string. The ASCII value of h is 104, thus 104 was displayed.
We will be able to achieve almost 50% size reduction using this function. The gzuncompress() function is used to uncompress the string.
The chr() function returns a character from the specified ASCII value. Since the ASCII value of 4 is 52, thus 4 was displayed.