answersLogoWhite

0

  • Boolean: true or false - $foo = true;
  • Integer: 0 or 1 - $foo = 7;
  • Float (Double): 0.5 or 6.2 - $foo = 5.5;
  • String: "bar" or "foo" - $foo = "bar";
User Avatar

Wiki User

7y ago

What else can I help you with?

Continue Learning about Basic Math

What are the different types of errors in PHP?

basicly four type errors in php warnings fatal notices parse and internly e_fatal e_warning e_fatal e_user_error e_user_warning e_user_fatal e_core_error e_core_warning e_compile_error e_recvoverable_error e_strict e_all


What are the four scalar types of PHP?

Four scalar types of PHPStringString is used for binary data. This can be text, content of an image file etc.$today = 'hey how are you';IntFor numeric values, Int is used. Int can contain a positive or a negative number.$total = 20000000;$temperature = -14 ;FloatFloat is used for numbers that have a fractional component. Float can also contain positive or negative values.$length = 145.78;$growthRate = -5.216;Sometimes name Double is used for Float values.BooleanBoolean is used for values that are either true or false. You would often see Boolean values in conditional statements.if (($age > 12) && ($age < 20)) {$teenage = true;} else {$teenage = false;}//Some content goes hereif ($teenage) {}


How many data types are there in PHP?

The data types are grouped into this categories: Booleans Integers Floating point numbers Strings Arrays Objects


What is new in PHP?

PHP is a recursive acronym for "PHP: Hypertext Preprocessor" created by The PHP Group. PHP is a widely used server-side scripting language and the general purpose of PHP is to create dynamic Web Pages. For more information, visit the PHP website.


How do you clear a variable in PHP?

You can unset a variable in PHP by setting it to NULL. You can set a variable to NULL by declaring it normally, or using the function "unset()". Both methods are acceptable, and accomplish the same thing. Examples of both: ---- $variable = NULL; ---- unset($variable); ----

Related Questions

What are Perl PHP and Java Servlet's?

Perl, php and Java are all examples of programming languages.


What are the different types of errors in PHP?

basicly four type errors in php warnings fatal notices parse and internly e_fatal e_warning e_fatal e_user_error e_user_warning e_user_fatal e_core_error e_core_warning e_compile_error e_recvoverable_error e_strict e_all


What are the primary reasons for using PHP programming services?

There are many reasons to use PHP programming services. Some reasons are hundreds of existing php code examples, free, experienced support from a 1000 php communities, and php is scalable to the largest web applications.


What are the four scalar types of PHP?

Four scalar types of PHPStringString is used for binary data. This can be text, content of an image file etc.$today = 'hey how are you';IntFor numeric values, Int is used. Int can contain a positive or a negative number.$total = 20000000;$temperature = -14 ;FloatFloat is used for numbers that have a fractional component. Float can also contain positive or negative values.$length = 145.78;$growthRate = -5.216;Sometimes name Double is used for Float values.BooleanBoolean is used for values that are either true or false. You would often see Boolean values in conditional statements.if (($age > 12) && ($age < 20)) {$teenage = true;} else {$teenage = false;}//Some content goes hereif ($teenage) {}


What language supports associative arrays?

AWK, Perl and PHP are three examples.


Where can one find PHP documents?

PHP documents are files that contain PHP codes, JavaScript, HTML, etc. which are executed via the server. PHP files that are stored in the computer can be found by typing ".php" in the search (this is the extension of PHP files).


What is CMS and its Type in PHP?

CMS is a Content Management System, Some types of CMS's that are written in PHP would be WordPress, Drupal, Joomla. Is this what you were asking?


Where can a tutorial in query strings in PHP be viewed?

There are several places where tutorials can be found for query strings in PHP. One is Learning Processing which is good if you are unfamiliar with PHP. Code Diesel has a step-by-step tutorial offering easily followed examples of how to fix query strings. PHP Manuel has a good tutorial for more advanced users.


What are some bad habits people use when learning to become PHP programmers?

There are many bad examples that one picks up when learning to become a PHP programmer. This includes writing poor and difficult to read code as well as relying too much on copying and pasting examples.


How many data types are there in PHP?

The data types are grouped into this categories: Booleans Integers Floating point numbers Strings Arrays Objects


What is 10 percent in Php 250?

Answer: Php 2510% of Php 250= 10% * Php 250= 0.10 * Php 250= Php 25


What do you mean by code and give some examples?

There is several types of code.. PHP, C++.. etc. It makes everything you see on the computer run. Code looks something like: &lt;font color =#3948b&gt;&lt;/font&gt; or cout &lt;&lt; "Hey there"; cin &gt;&gt; Stupid;