Autor Beitrag
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Mo 19.09.05 08:48 
Hi,
Hab schon Ewigkeiten nichts mehr mit PHP gemacht, aber gibt's da eigentlich ein Pendant zu "nil"? Ich spiel gerade mit Komponentenbasierter Entwicklung unter PHP rum und da bräucht ich so etwas hin und wieder mal...

Gruß

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mo 19.09.05 08:54 
Ich kann kein PHP, aber da PHP ähnlich wie C ist würd ich sagen probier einfach mal NULL :)

AXMD
rochus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Mo 19.09.05 10:03 
Das klappt insofern nicht, da ich die Eigenschaft in der Funktion als Referenz übergebe und mir PHP dann ein "Cannot pass parameter 1 by reference" zurückwirft...

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
rochus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Mo 19.09.05 10:07 
Naja also ich hab mir abgeholfen, indem ich einfach im Kopf eine variable $nil = NULL; angelegt hab und die als Parameter übergebe... -> das klappt :)


Gruß

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean