2
Q:

PHP allows you to send emails directly from a script.

php allows you to send emails directly from a script

 

A) TRUE B) FALSE

Answer:   A) TRUE



Explanation:

The mail() function allows you to send emails directly from a script.

 

Q:

What does a special set of tags do in PHP?

Answer The output is displayed directly to the browser.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP - Technology

0 2706
Q:

How do I find out the number of parameters passed into function?

Answer func_num_args() function returns the number of parameters passed in.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP - Technology

0 2593
Q:

Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?

Answer In this example it wouldn’t matter, since the variable is all by itself, but if you were to print something like "{$a},000,000 mln dollars", then you definitely need to use the braces.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP - Technology

0 3622
Q:

So if md5( ) generates the most secure hash, why would you ever use the less secure crc32( ) and sha1( )?

Answer Crypto usage in PHP is simple, but that doesn’t mean it’s free. First off, depending on the data that you’re encrypting, you might have reasons to store a 32-bit value in the database instead of the 160-bit value to save on space. Second, the more secure the crypto is, the longer is the computation time to deliver the hash value. A high volume site might be significantly slowed down, if frequent md5() generation is required.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP - Technology

0 2829
Q:

With a heredoc syntax, do I get variable substitution inside the heredoc contents?

Answer Yes
Report Error

View answer Workspace Report Error Discuss

Subject: PHP - Technology

1 3169
Q:

What’s the difference between accessing a class method via -> and via ::?

Answer :: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP - Technology

0 3537
Q:

When are you supposed to use endif to end the conditional statement?

Answer When the original if was followed by : and then the code block without braces.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP - Technology

0 4232