You are here: Re: newby question : function parameter passing « PHP Programming Language « IT news, forums, messages
Re: newby question : function parameter passing

Posted by Mike Roetgers on 02/26/07 12:59

amadain schrieb:
> Help. I'm new to php. I wrote a function that did not seem to work so
> I checked whether the parameter I was passing to the function was
> actually being used. I found that it wasn't. When I run the following
> code I get:
>
> Testcheck:
>
> and nothing else. It seems that the variable is not being passed to
> the function. Here is the code:
>
> function file_write_position($textcheck) {
> print "Testcheck: " . $testcheck . "<br>\n\n";
> return;
> }
>
> $testcheck="# Test Call Area";
> file_write_position($testcheck);
>
> What am I doing wrong??
>
> A
>
The parameter is called $textcheck, but you are using $testcheck inside
the function.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация