Werte von Funktion weitergeben
Hallo.
Also, der Titel sagt eigentlich schon alles.
Ich möchte Werte von einer Funktion auslesen/weitergeben.
Also - functions.php:
Und jetzt:
Greetz, Lousek
Also, der Titel sagt eigentlich schon alles.
Ich möchte Werte von einer Funktion auslesen/weitergeben.
Also - functions.php:
function test($testwert)
{
if($testwert<100) {
$testweitergabe = 1
} else {
$testweitergabe = 0
}
}
<?php
include "functions.php";
test($testwert);
echo --------------------->>>>Hier würde ich jetzt gerne den Wert von $testwert darstellen, wie mache ich das?
?>
Please also mark the comments that contributed to the solution of the article
Content-Key: 78199
Url: https://administrator.de/contentid/78199
Printed on: April 23, 2024 at 07:04 o'clock
2 Comments
Latest comment