Re: [PHP] Variable naming standards???

2002-08-13 Thread Pushkar Pradhan
Samuel this is what you can use as a standard (at least for yourself): http://www.cs.msstate.edu/~cs1314/global/guide It describes how to name variables, functions, scripts etc. In short the variable names must tell the programmer what it is being used for, e.g. $countHits = 0; // initialize coun

Re: [PHP] Variable naming standards???

2002-08-13 Thread Nicholas Mercier
My two cents, I think if you are working on a personal product you use what works for you. If working in a group find out or decide as a group what standards to use. The hungarian standards are well designed, but I've seen others that work as well. When posting data from a from to another s

RE: [PHP] Variable naming standards???

2002-08-13 Thread Jay Blanchard
[snip] A philosophical question Are there any standards to naming variables?? I was told that one should include a letter or combination of letters to describe a variable i.e. $sfoo = 'string'; // string $bfoo = true; // bool $nfoo = 10; // interger [/snip] http://ootips.org/hungarian-nota

Re: [PHP] Variable naming

2001-09-25 Thread Kyle Moore
That was the ticket. Thanks a lot for your help Adam Plocher wrote: > $id = 1; > ${"sql_" . $id} = "hey"; > print $sql_1; -- Kyle Moore UNIX Systems Administrator Trust Company of America -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

RE: [PHP] Variable naming

2001-09-25 Thread Alfredeen, Johan
Read this http://www.php.net/manual/en/language.variables.variable.php Johan www.pongworld.com php tt -Original Message- From: Fábio Migliorini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 12:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variable naming $id = 1

Re: [PHP] Variable naming

2001-09-25 Thread Fábio Migliorini
$id = 1; $sql_1 = "hey"; $vname = "sql_".$id; echo $$vname; -- Fábio Migliorini http://www.atua.com.br [EMAIL PROTECTED] UIN: 42729458 Linux User: 175409 - Original Message - From: "Kyle Moore" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 1:15 PM Subject: [

RE: [PHP] Variable naming

2001-09-25 Thread Adam Plocher
$id = 1; ${"sql_" . $id} = "hey"; print $sql_1; Try that -Original Message- From: Kyle Moore [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 9:15 AM To: [EMAIL PROTECTED] Subject: [PHP] Variable naming I want to use the value of a variable in a variable name. For instance

RE: [PHP] Variable naming

2001-09-25 Thread Boget, Chris
> I want to use the value of a variable in a variable name. For > instance: > > $id = 1; > $sql_$id = "hey"; //set variable $sql_1 to hey > print $sql_1; //should print hey I *believe* (could be wrong) what you want is this: print ${$sql_1}; Check out variable variables in the dox. Chris

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread PHPBeginner.com
-Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 3:27 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variable (naming them) Functions. Variable functions? http://localhost/some_script.php?fname=foo prints "this is foo"; http://localhost/some_

Re: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Philip Olson
for point of reference regarding this thread : http://www.php.net/manual/en/functions.variable-functions.php regards, philip On Sat, 28 Apr 2001, Yasuo Ohgaki wrote: > Variable functions? > > foo () { > echo 'this is foo'; > } > > bar () { > echo 'this is bar'; > } > > $var = $HTT

Re: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Yasuo Ohgaki
Variable functions? http://localhost/some_script.php?fname=foo prints "this is foo"; http://localhost/some_script.php?fname=bar print "this is bar" Regards, -- Yasuo Ohgaki "Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message DC017B079D81D411998C009027B7112A015ED16A@EXC-TYO-01">news:DC01

RE: [PHP] Variable (naming them) Functions. DONE! DONE! DONE!

2001-04-27 Thread PHPBeginner.com
and Oliver in particular! Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Christian Reiniger [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 2:48 AM To: [EMAIL PROTECTED]

Re: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Christian Reiniger
On Friday 27 April 2001 17:08, PHPBeginner.com wrote: > no classes CAN'T solve my problem: > > it is an abstraction layer. called as func_hello(); I want, inside > func_hello() {} declare a new function based on what happened before > func_hello() was called. In other words: I of course though abo

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Johnson, Kirk
001 10:27 AM > To: Johnson, Kirk; 'PHP General List. (E-mail)' > Subject: RE: [PHP] Variable (naming them) Functions. > > > create_function seems not letting you choosing it's name. > > am I right, or there's a way to say: > create_function($name.$t

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread PHPBeginner.com
ginner.com -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 1:03 AM To: 'PHP General List. (E-mail)' Subject: RE: [PHP] Variable (naming them) Functions. Did you see create_function()? Not sure if this is what you are after, but http://w

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Johnson, Kirk
Did you see create_function()? Not sure if this is what you are after, but http://www.php.net/manual/en/function.create-function.php Kirk > -Original Message- > From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] > Subject: [PHP] Variable (naming them) Functions. > > Hello everyone: > > I

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread PHPBeginner.com
: SED [mailto:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 9:53 PM To: Maxim Maletsky Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Variable (naming them) Functions. Why not use classes? If I understand you problem correctly, I think classes should solve your problem. Right? SED -Original Mess

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread SED
Why not use classes? If I understand you problem correctly, I think classes should solve your problem. Right? SED -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: 27. apríl 2001 11:58 To: 'PHP General List. (E-mail)' Subject: [PHP] Variable (naming them) Functions