answersLogoWhite

0

in PHP true is 1 too.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

In PHP the only way to output text is with echo.?

1


What is the number 1 country that searches for PHP on Google?

The US has the most frequent searches of the acronym PHP on Google.


What does the increment operator do in PHP?

The incremental operator increases the variable by 1. See the example below: <?php $number = 10; $number++; echo $number; // outputs 11 ?>


What is if in php?

if is very simple, if the given conditions are true than execute the code, if not then move on: $a = 1; if($a == 1) {the code} the ($a == 1) will output true to the if statement, which will execute the code


How do you write a program to print Inverse number in PHP?

There are two types of inverse numbers in this context: additive and multiplicative. An additive inverse number is a number that's had its sign flipped: positive becomes negative, and negative becomes positive. The PHP code for this would be: $result=-$number; A multiplicative inverse number is a number that's been divided into 1. So 5 becomes 1/5, and 1/5 becomes 1/1/5, or 5. The PHP code for this would be: $result=1/$number;


Why you don't see any PHP code when you view source code of PHP page in browser?

PHP is a Server-side HTML embedded scripting language. It means you can embed you PHP Code in HTML template.When ever Server finds <?php ?> , it always process the code and generate the HTML output. Example:How "Hello World" get displayed on browser. Consider "hello.php" contain <?php echo '<b>Hello World</b>'; ?> . "hello.php" is placed in your server root directory. 1. Client make a request to file. http://localhost/hello.php. Please notice local host may be replaced with your server URL like http://www.myworld.com/hello.php 2. Server receives the request and process "hello.php" . Hence , <b> Hello World</b> HTML output is generated. 3.Server return the output to client. 4.Client [Browser] receive and display the output Hence when we view source we never able to get the PHP Code.


What is equal to the output work divided by the input work?

That is called the machine's efficiency. It is a number between 0 and 1 (or between 0% and 100%).


How much is 1 PHP to 1 INR?

1 PHP (Philippine peso) = 1.03305264 INR (Indian rupees)


How can you see the php code that is executed in your browser?

May be this example will help. Please focus on where ob_implicit_flush(true) and ob_end_flush(); are placed in your code. Version 1:-------------------------------- <?PHP ob_implicit_flush(true); ob_end_flush(); ?> e <div>a<div>a</div> <?PHP sleep(1); ?> <div>b</div> <?PHP sleep(1); ?> c</div> Version 2:------------------------------ <?PHP ob_implicit_flush(true); ob_end_flush(); ?> e<div>a<div>a</div></div> <?PHP sleep(1); ?> <div>b</div> <?PHP sleep(1); ?> c</div> Version 3:------------------------------ <?PHP ob_implicit_flush(true); ob_end_flush(); ?> e<div>a<div>a</div><!--</div>--> <?PHP sleep(1); ?> <div>b</div> <?PHP sleep(1); ?> c</div> ?>


How do you write a php algorithm?

Well if you know php then you can write your own algorithm php syntax is <?php //open php tag $num = 1; $num2 = 2; $total = $num + $num2; echo $total; ?> //close php tag


PHP program to find the minimum number among a list?


What is the rule to determine how to get the output number from the input number?

The rule that determines the output number based on the input number is known as a function. For example take the function: f(x) = x+1. F is the name of our function, x is the input number, and f(x) is our output number. So if our input number is 3, our function or "rule" says to add one to it. Therefore, f(x), known as the output number, would be 4 since 3+1 = 4.