100% Zufriedenheitsgarantie Sofort verfügbar nach Zahlung Sowohl online als auch als PDF Du bist an nichts gebunden
logo-home
PHP Exam Questions With Answers Graded A+ 10,10 €
In den Einkaufswagen

Prüfung

PHP Exam Questions With Answers Graded A+

 0 mal verkauft
  • Kurs
  • Hochschule

PHP Exam Questions With Answers Graded A+ when should you use single quotes? when there are no variables in the string; if you use single quotes, PHP will not search for variables to replace, which can enhance speed. when should you use double quotes? when a variable contains any amount of ...

[ Mehr anzeigen ]

vorschau 2 aus 13   Seiten

  • 8. juni 2024
  • 13
  • 2023/2024
  • Prüfung
  • Fragen & Antworten
avatar-seller
PHP Exam Questions With Answers Graded
A+
when should you use single quotes?
when there are no variables in the string; if you use single quotes, PHP will not search for variables to
replace, which can enhance speed.


when should you use double quotes?
when a variable contains any amount of variables; in general.


can variable names begin with numbers?
no.


can variable names begin with underscores?
yes.


can variable names contain symbols?
no.


are variable names case-sensitive?
yes.


what should be used to have multiple quotations in one string?
the escape character '\':
$string = "I said \"Hello\" to the man.";


can a string with numbers be used as a number?
yes.
$string = "2";
can be used as
$string = 2;
can be used.


what character must all variables begin with?
the dollar sign $.


is data shown in the URL if GET is used?
yes; use for search engines, catalogued pages, pages that would be bookmarked.


is data shown in the URL if POST is used?
no; use for passwords, pages that would not be bookmarked, pages that require security.


what should the action attribute's value contain?
the URL to the php script that will handle the information in the form.

, where is data sent using POST found?
predefined variable $_POST


where is data sent using GET found?
predefined variable $_GET


what type of variable is $_SERVER
$_SERVER is a predefined variable.


what type of variable is $_POST?
predefined variable.


what type of variable is $_GET?
predefined variable.


will print $_POST work? why or why not?
no, because you cannot use the print function on arrays.


will print $_GET work? why or why not?
no, because you cannot use the print function on arrays.


will print $_SERVER work? why or why not?
no, because you cannot use the print function on arrays.


what can be used to print data in an array?
not print; print_r (human readable) can be used.


can arrays contain arrays?
yes, they commonly do contain arrays.


what is an 'index' or 'key'?
what is referred to for a value within an array.
$_POST['name'] may be equal to 'Jane Doe'
$cards[4] may be equal to 'BMW'


what will happen if $_POST['name'] is used in double quotes?
a parse error will occur, to avoid this, create shorthand variables like:
$name1 = $_POST['name1'];
$name2 = $_POST['name2'];


how do you know what to use to get a value from POST or GET?
they are the values of the name attributes of the input tags in the form.
$_POST['name'] or $_GET['name'] refers to the value of <input name="name" /> (depending on the
method of the form).

Alle Vorteile der Zusammenfassungen von Stuvia auf einen Blick:

Garantiert gute Qualität durch Reviews

Garantiert gute Qualität durch Reviews

Stuvia Verkäufer haben mehr als 700.000 Zusammenfassungen beurteilt. Deshalb weißt du dass du das beste Dokument kaufst.

Schnell und einfach kaufen

Schnell und einfach kaufen

Man bezahlt schnell und einfach mit iDeal, Kreditkarte oder Stuvia-Kredit für die Zusammenfassungen. Man braucht keine Mitgliedschaft.

Konzentration auf den Kern der Sache

Konzentration auf den Kern der Sache

Deine Mitstudenten schreiben die Zusammenfassungen. Deshalb enthalten die Zusammenfassungen immer aktuelle, zuverlässige und up-to-date Informationen. Damit kommst du schnell zum Kern der Sache.

Häufig gestellte Fragen

Was bekomme ich, wenn ich dieses Dokument kaufe?

Du erhältst eine PDF-Datei, die sofort nach dem Kauf verfügbar ist. Das gekaufte Dokument ist jederzeit, überall und unbegrenzt über dein Profil zugänglich.

Zufriedenheitsgarantie: Wie funktioniert das?

Unsere Zufriedenheitsgarantie sorgt dafür, dass du immer eine Lernunterlage findest, die zu dir passt. Du füllst ein Formular aus und unser Kundendienstteam kümmert sich um den Rest.

Wem kaufe ich diese Zusammenfassung ab?

Stuvia ist ein Marktplatz, du kaufst dieses Dokument also nicht von uns, sondern vom Verkäufer ACADEMICAIDSTORE. Stuvia erleichtert die Zahlung an den Verkäufer.

Werde ich an ein Abonnement gebunden sein?

Nein, du kaufst diese Zusammenfassung nur für 10,10 €. Du bist nach deinem Kauf an nichts gebunden.

Kann man Stuvia trauen?

4.6 Sterne auf Google & Trustpilot (+1000 reviews)

45.681 Zusammenfassungen wurden in den letzten 30 Tagen verkauft

Gegründet 2010, seit 15 Jahren die erste Adresse für Zusammenfassungen

Starte mit dem Verkauf
10,10 €
  • (0)
In den Einkaufswagen
Hinzugefügt