|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-07 03:41 UTC] cardinal@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 07:00:01 2025 UTC |
Hello. I have got a "standard" install of PHP 4.0.4pl1. So there is nothing special about it. Here is the code extract: #$result Data is successfully retrieved from mysql database) class auth_user { var $md_paketnummern; function auth_user($username,$password,$database,$auth_table,$conn_id) { $this->md_paketnummern=explode("|",$result[pakete]); } } class fetch_pakete { function fetch_pakete(){ # Now comes the LINE!!! foreach($newuser->md_paketnummern as $arraykey => $paketnummern){ echo $paketnummern; } } } Now I call $newuser = new auth_user; then: netpaket = new fetch_pakete; When I replace $newuser->md_paketnummern with an argument, it works fine. With this version it does not.