mirror of
https://github.com/janunger/rheinwerk-video-training.git
synced 2026-02-05 22:55:14 +01:00
Initiale Version
This commit is contained in:
4
Kapitel_2/Lektion_5/1_variablen_ausgeben.php
Normal file
4
Kapitel_2/Lektion_5/1_variablen_ausgeben.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
$name = "Max Muster";
|
||||
echo $name;
|
||||
5
Kapitel_2/Lektion_5/2_variablen_mit_text_kombinieren.php
Normal file
5
Kapitel_2/Lektion_5/2_variablen_mit_text_kombinieren.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
echo "Hallo ";
|
||||
$name = "Max Muster";
|
||||
echo $name;
|
||||
11
Kapitel_2/Lektion_5/3_erlaubte_variablennamen.php
Normal file
11
Kapitel_2/Lektion_5/3_erlaubte_variablennamen.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
echo "Hallo ";
|
||||
$_name = "Max Muster";
|
||||
echo $_name;
|
||||
|
||||
echo "<br>";
|
||||
|
||||
echo "Hallo ";
|
||||
$Name = "Max Muster";
|
||||
echo $Name;
|
||||
12
Kapitel_2/Lektion_5/4_variablennamen_gross_klein.php
Normal file
12
Kapitel_2/Lektion_5/4_variablennamen_gross_klein.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
// Groß- und Kleinschreibung bei Variablennamen wird unterschieden.
|
||||
// $name und $Name sind zwei verschiedene Variablen.
|
||||
|
||||
echo "Hallo ";
|
||||
|
||||
$name = "Max Muster";
|
||||
$Name = "Barbara Beispiel";
|
||||
|
||||
echo $name;
|
||||
echo $Name;
|
||||
6
Kapitel_2/Lektion_5/5_variable_variablen.php
Normal file
6
Kapitel_2/Lektion_5/5_variable_variablen.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
$a = 'Wert von a';
|
||||
$b = 'a';
|
||||
|
||||
echo $$b;
|
||||
Reference in New Issue
Block a user