> -Original Message-
> From: Ron Dyck [mailto:[EMAIL PROTECTED]]
> Sent: 18 February 2002 13:38
>
[... snip working example]
>
> but, this doesn't:
>
> function myFunction() {
> foreach($_POST as $key=>$value) {
>
> if (empty($$key)) {
> print "empty value $key";
>
> > but, this doesn't:
> >
> > function myFunction() {
> > foreach($_POST as $key=>$value) {
> >
> > if (empty($$key)) {
> > print "empty value $key";
> > }
> >
> > }
> > }
>
> Since php variable scope is local unless you define it global, that won't
> work that way. You migh
- Original Message -
From: "Ron Dyck" <[EMAIL PROTECTED]>
> but, this doesn't:
>
> function myFunction() {
> foreach($_POST as $key=>$value) {
>
> if (empty($$key)) {
> print "empty value $key";
> }
>
> }
> }
Since php variable scope is local unless you define it gl
3 matches
Mail list logo