On Tue, 25 Sep 2001 17:46, Bård Tommy Nilsen wrote:
> Can you write me an short example ??
>
>
> Bård Tommy Nilsen
[About passing arguments to functions and global scoping]
Declaring $id global:
function doit() {
global $id;
echo $id;
}
$id = 1;
doit();
output is 1
Passing $id as parameter:
Can you write me an short example ??
Bård Tommy Nilsen
-Opprinnelig melding-
Fra: David Robley [mailto:[EMAIL PROTECTED]]
Sendt: 25. september 2001 10:11
Til: Bård Tommy Nilsen; [EMAIL PROTECTED]
Emne: Re: SV: [PHP] Including files without loosing my string
On Tue, 25 Sep 2001 17
r 2001 09:56
> Til: Bård Tommy Nilsen; [EMAIL PROTECTED]
> Emne: Re: [PHP] Including files without loosing my string
>
> On Tue, 25 Sep 2001 17:01, Bård Tommy Nilsen wrote:
> > Hello !
> >
> > I am trying to keep my string after including av file.
> &g
But i wanted to show what i am after, and that is that the
id string cant be called after including index.php ...
Bård Tommy Nilsen
-Opprinnelig melding-
Fra: David Robley [mailto:[EMAIL PROTECTED]]
Sendt: 25. september 2001 09:56
Til: Bård Tommy Nilsen; [EMAIL PROTECTED]
Emne: Re:
On Tue, 25 Sep 2001 17:01, Bård Tommy Nilsen wrote:
> Hello !
>
> I am trying to keep my string after including av file.
>
> file1.php:
> (accessed with file1.php?id=1)
>
> include 'index.php';
>
> function func() {
> echo "buddy";
> }
> ?>
>
> index.php:
> echo "Hello";
> if (function_exists('f
Hello !
I am trying to keep my string after including av file.
file1.php:
(accessed with file1.php?id=1)
index.php:
http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
6 matches
Mail list logo