php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2005

 
 
LinkBack (1) Themen-Optionen Thema bewerten
Alt 09.02.2005, 18:21  
Gast
 
Beiträge: n/a
Standard wie mache ich ein variable aus ein funktion global?

wie mache ich ein variable aus ein funktion global?

ich hab ein whle schleife in dieser ergeben sich durch eine SQL abfrage variablen mit werten wie kann ich diese Wertr global verwenden
 
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 09.02.2005, 18:22  
Moderator
 
Benutzerbild von robo47
 
Registriert seit: 03.09.2004
Beiträge: 11.792
PHP-Kenntnisse:
Fortgeschritten
robo47 kann auf vieles stolz seinrobo47 kann auf vieles stolz seinrobo47 kann auf vieles stolz seinrobo47 kann auf vieles stolz seinrobo47 kann auf vieles stolz seinrobo47 kann auf vieles stolz seinrobo47 kann auf vieles stolz seinrobo47 kann auf vieles stolz sein
Standard

function test()
{
global $blub;
$blub = 'bla';
}

test();

echo $blub;
robo47 ist offline  
Alt 09.02.2005, 18:26  
Gast
 
Beiträge: n/a
Standard

thx
 
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

LinkBacks (?)
LinkBack to this Thread: http://www.php.de/php-tipps-2005/17568-wie-mache-ich-ein-variable-aus-ein-funktion-global.html
Erstellt von For Type Datum
Metacrawler - Die Metasuchmaschine. This thread Refback 28.09.2008 01:16

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Externe Variable über eine Funktion ausgeben errox PHP Tipps 2008 3 14.04.2008 11:26
variable in funktion JanM PHP Tipps 2006 2 23.07.2006 20:06
js: globale Variable lokal global Deklarieren Blank HTML, Usability und Barrierefreiheit 1 22.04.2006 15:42
Mehrere Variabelen mit global in Funktion einlesen DerTschmi PHP Tipps 2006 8 22.03.2006 21:27
Hilfe! global variable nicht im funktion erkannt Bruce PHP Tipps 2006 3 24.01.2006 09:46
variable ausserhalb von funktion... tonne PHP Tipps 2005-2 7 27.10.2005 01:33
variable aus if Abfrage mit in eine Funktion nehmen djrace PHP Tipps 2005-2 6 20.10.2005 15:57
mit link variable setzen und funktion ausfürhen PHP Tipps 2005-2 4 07.09.2005 16:36
variable in funktion..euhmm? imported_kontur PHP Tipps 2005-2 1 19.08.2005 16:41
(schnellere) Funktion zum Zusammenfassen von CSS PHP-Fortgeschrittene 21 08.08.2005 16:47
Globale Variable aus Funktion?? PHP Tipps 2005-2 0 05.08.2005 18:57
Variable Werte einer Funktion übergeben bendigo PHP Tipps 2005-2 4 03.08.2005 17:33
variable in Funktion nutzen, ohne übergeben Unbekanntes_Pferd PHP Tipps 2005-2 1 22.06.2005 19:20
Funktion aufruf Variable überprüfen PHP Tipps 2005 48 11.01.2005 16:53
Auf Variable in Funktion zugreifen PHP Tipps 2004 5 02.08.2004 23:57

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
php function variable global, php function global, php funktion globale variable, php variable in funktion global, php variable aus funktion global machen, php function global variable, http://www.php.de/php-tipps-2005/17568-wie-mache-ich-ein-variable-aus-ein-funktion-global.html, php variable in funktion global machen, function global php, php variable funktion global, php variable aus funktion global, php variablen in funktionen global, php variable function global, php function globale variable, php funktionen globale variablen, php variablen in funktion global machen, php funktion variable globalisieren, php funktion globale variable setzen, variable aus funktion global php, php globale variable in funktion

Alle Zeitangaben in WEZ +2. Es ist jetzt 06:11 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.