English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1- How to write user defined function in PHP
2- how calling that function in PHP
3- return value in PHP
4- How end function? in PHP
5- Arrays start with 0 or 1? in PHP
6- is thererequire ; at line end ? in PHP
7- is there string concatenation in PHP
8- Is thererequire {} after if statements? in PHP
9- if syntax? in PHP
10- else if syntax? in PHP
11- how reference variables? in PHP
12- equality test? in PHP
13- comments? in PHP
14- additional notes? about PHP

2006-07-27 06:05:59 · 10 answers · asked by guess m 1 in Computers & Internet Programming & Design

10 answers

1. function INSERT_FUNCTION_NAME($variables, $to, $be, $called)
{
what to do
}


2. FUNCTION_NAME();

3. return $variable or return true

4. If defining: } if calling ;

5. 0

6. Every command must end in ";"

7. Not exactly sure what concatenation is but I looked up the definition, and I think the answer is yes

8. Yes

9. There is if.. then in PHP

11. The dollar sign ($)

12. $something == "string"
$something == 0 (integers do not require quotes, strings do)

13. //one line
or
/*
multiple lines
*/

14. visit http://www.php.net/ or http://www.w3schools.com
note that the ... in #1 should be a comma, Yahoo changed it to ...

2006-07-27 06:15:10 · answer #1 · answered by Jake 2 · 1 0

many tutorials regarding PHP are available on the site http://earlysandwich.com . i personally downloaded many tutorials from them.

2014-06-07 04:54:33 · answer #2 · answered by ? 2 · 0 0

some do, some do not. Why do ask? in case you "accompanied up" and did some analyze, you need to verify that merely about 0.5 (of the intense questions, a minimum of) are resolved. sure, it is only a pastime, yet i does no longer say valueless. it is psychological exercising. You get to verify how properly you could tolerate idiots and how a lot you and others recognize.

2016-11-26 02:51:44 · answer #3 · answered by ? 4 · 0 0

1) function foo(){/*do stuff*/}

2) foo();

3) function foo(){return 1;}

4) with a }, does not require a return

5) 0

6) yes, all commands require a ;

7) $concat = $str1.$str2;

8) no, if it is a one line if you can just do if(true) foo();

9) if({condition}){/*do stuff*/}

10) elseif({condition}){/*do stuff*/}

11) function foo(& $arg){}

12) $val1 == $val2

13) // for one line comments
/*comment*/ for multi-line comments

14) see http://www.php.net/ for full documentation

2006-07-27 07:25:54 · answer #4 · answered by John J 6 · 1 0

Jake answered all correctly but here are alternative ways for writing if statement:

if(condition) echo "worked";

if(condition):
echo "worked";
endif;

2013-12-05 06:16:08 · answer #5 · answered by Waseem 1 · 0 0

Many pool chemicals are used to sanitize, clean, or balance the water in swimming pools, hot tubs, and spas. A partial list of pool chemicals includes chlorinated isocyanurates, lithium hypochlorite, sodium bicarbonate, potassium monopersulfate, hydrogen peroxide, sodium hypochlorite , calcium hypochlorite, and certain ammonium, brominated, copper and silver compounds, and muriatic acid. Pool chemicals involved in fire or toxic vapor releases are likely to include those that add chlorine or a chlorine ion to the pool water for bacterial control. Chemicals that release chlorine are among the group of chemicals classified as "oxidizers." These pool oxidizer chemicals include calcium hypochlorite, sodium hypochlorite, and chlorinated isocyanurates. Other pool chemicals are used to control the growth of algae or fungus, to adjust the acidity or alkalinity (pH control) and to clarify the pool water.

The pH of a pool is controlled by adding either acid or alkali products. An acid, either muriatic acid (also known as hydrochloric acid) or sodium bisulphate, is added to lower the pH. To raise the pH, an alkali, sodium carbonate (also known as soda ash) is added.

Additionally, pools use sanitizing chemicals to remove algae, harmful bacteria, dirt, germs, and organic matter carried into the pool on people’s bodies and by the wind. These chemicals oxidize organic matter. Most typically, a chlorine product is used to sanitize the pool. Either a liquid chlorine (typically sodium hypochlorite) or dry chlorine (usually calcium hypochlorite) is used.

Pool and spa chemicals may be corrosive, meaning they may cause skin and eye damage. Many pool chemicals, including different types of chlorine, can react violently when mixed, producing toxic gases, fire, and/or an explosion.

2006-07-27 06:06:39 · answer #6 · answered by lostl13 2 · 0 4

http://www.w3schools.com/php/default.asp

2006-07-27 06:09:41 · answer #7 · answered by helixburger 6 · 0 0

try this website http://www.w3schools.com it shld help u alot in ur qns

2006-07-27 06:08:04 · answer #8 · answered by cloud 1 · 0 0

wow you expect a lot here lolol

2006-07-27 06:07:59 · answer #9 · answered by TOM J 2 · 0 1

poot.

2006-07-27 06:09:10 · answer #10 · answered by stale_poot 1 · 0 1

fedest.com, questions and answers