PHP Functions +- Sponsor-Board.de (https://www.sponsor-board.de) +-- Forum: Community (/forumdisplay.php?fid=56) +--- Forum: Hilfe (/forumdisplay.php?fid=102) +---- Forum: Scripting (/forumdisplay.php?fid=108) +---- Thema: PHP Functions (/showthread.php?tid=46569) |
PHP Functions - Kiwie - 17.03.2014 12:16 Hallo liebe Community, Ich brauch mal eure hilfe, ich bin am verzweifeln. Ich lasse mir in eine function einen array erstellen und würde diesen Array gern in einer anderen funktion nutzen. Wie über gebe ich diese? Funktion die den query setzt und in der der Array weiterverarbeitet werden soll: PHP-Code: public function __startSession($username, $password) {
PHP-Code: public function array_select($query) {
RE: PHP Functions - Aaron - 17.03.2014 12:23 die Funktion muss natürlich das entsprechende Array zurückgeben, dafür gibt es "return" also z.B. Code: return $result->fetch_array();
Code: public static function array_select($query)
|