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:
9
Kapitel_3/Lektion_2/1_funktionen.php
Normal file
9
Kapitel_3/Lektion_2/1_funktionen.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
function sageHallo()
|
||||
{
|
||||
echo 'Hallo';
|
||||
echo ' Welt!';
|
||||
}
|
||||
|
||||
sageHallo();
|
||||
8
Kapitel_3/Lektion_2/2_parameter.php
Normal file
8
Kapitel_3/Lektion_2/2_parameter.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
function sageHallo($name)
|
||||
{
|
||||
echo 'Hallo ' . $name;
|
||||
}
|
||||
|
||||
sageHallo('PHP-Videotraining');
|
||||
9
Kapitel_3/Lektion_2/3_mehrere_parameter.php
Normal file
9
Kapitel_3/Lektion_2/3_mehrere_parameter.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
function sageHallo($vorname, $nachname)
|
||||
{
|
||||
echo 'Hallo ' . $vorname . ' ' . $nachname;
|
||||
}
|
||||
|
||||
sageHallo('Barbara', 'Beispiel');
|
||||
sageHallo('Max', 'Muster');
|
||||
11
Kapitel_3/Lektion_2/4_sichtbarkeit.php
Normal file
11
Kapitel_3/Lektion_2/4_sichtbarkeit.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
$a = 1;
|
||||
|
||||
function sageHallo($wert)
|
||||
{
|
||||
var_dump($a);
|
||||
var_dump($wert);
|
||||
}
|
||||
|
||||
sageHallo($a);
|
||||
Reference in New Issue
Block a user