Correct Answer: It?s how they handle failures If the file is not found by require(), it will cause a fatal error and halt the execution of the script If the file is not found by include(), a warning will be issued, but execution will continue
2. What?s the difference between md5( ), crc32( ) and sha1( ) crypto on PHP?
Correct Answer: The major difference is the length of the hash generated CRC32 is, evidently, 32 bits, while sha1() returns a 128 bit value, and md5() returns a 160 bit value This is important when avoiding collisions
3. What is the difference between characters 23 and x23?
Correct Answer: Expression preceding the ? is evaluated, if it?s true, then the expression preceding the : is executed, otherwise, the expression following : is executed
Correct Answer: Since the data inside the single-quoted string is not parsed for variable substitution, it?s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution