PHP 5 Flashcards

1
Q

what does:

echo PHP_EOL;

do?

A

Creates a new line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
z $db = mysqli_connect('localhost','root','root','database_name')
 or die('Error connecting to MySQL server.');

what does this code do?

A

Connects to a mySQLi database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly