Data types, PHP Web Programming

Assignment Help:

A value, the data assigned to a variable, may contain any sort of data. Though, JavaScript considers data to fall into many possible types. Based on the type of data, certain operations may or may not be allowed on the values. For instance, you cannot multiply arithmetically two string values. Variables can be of following types:

Data Types

Description

 

 

 

 

 

 

 

Number

3 or 7.987 are the examples of Integer & floating-point numbers.

 

Integers can be positive, 0, or negative; Integers can be expressed in decimal (base 10), hexadecimal (base 16), and octal (base 8). A decimal integer literal contains a sequence of digits without a leading 0 (zero). A leading 0 (zero) onto an integer literal denote it is in octal; a leading 0x (or 0X) specified hexadecimal. Hexadecimal integers can include digits (0-9) and the letters a-f & A-F. Octal integers can include only the digits 0-7.

 

A floating-point number can contain either a decimal fraction, an "e" (uppercase or lowercase), that is used to represent "ten to the power of" in scientific notation, or both. The exponent part is an "e" or "E" followed by an integer, which can be signed (preceded by "+" or "-"). A floating-point literal ought to have at least one digit & either a decimal point or "e" (or "E").

Boolean

True or False. The possible Boolean values are true & false. These are special values, & not usable as 1 & 0. In a comparison, any expression which evaluates to zero is taken to be false, & any statement which evaluates to a number other than 0 is taken to be true.

String

"Hello World!" Strings are delineated through single or double quotation marks. (Employ single quotes to type strings that have quotation marks.)

Object

MyObj = new Object();

Null

Not the simialr as zero - no value at all. A null value is one which has no value and means nothing.

Undefined

A value which is undefined is a value held through a variable after it has been created, however before a value has been assigned to it.

 


Related Discussions:- Data types

A bot for uploading purpose, A bot for uploading purpose Project Descrip...

A bot for uploading purpose Project Description: i'm seeking a good coder to code me a bot for uploading purpose must work on windows Skills required are C Programming, PH

Need help in house rental tracking hosted web gui and db, House Rental trac...

House Rental tracking Hosted Web GUI and DB Want a web interface program to track short term rentals of multiple vacation properties. Most information wants to be scraped twice

I want a eventbrite programmer, I want a Eventbrite programmer Need some...

I want a Eventbrite programmer Need someone to write a code that will implement custom tickets for eventbrite. Desired Skills are eventbrite

Advanced topics of html, In this unit we have study some significant and ad...

In this unit we have study some significant and advanced topics of HTML. Now you have to be able to develop interactive Web pages also. We have discussed ways of connecting to dist

Drupal flow of information among 5 main layers, Explain drupal flow Mainly...

Explain drupal flow Mainly, there are 5 important layers in Drupal where information flows, a. Data (Node, ETC) b. Modules c. Blocks and Menus d. User Permissions e. Template a.

Need help to create email capture web page for business, Email capture web ...

Email capture web page for business supplying WIFI MAILCHIMP We are supplying free WIFI to our customers. Our WIFI system permits us to forward customers to a URL once connec

We want help in codeignier script change easy, We want help in Codeignier S...

We want help in Codeignier Script Change Easy Project details as follow- To add three simple modifications for an existing CMS script. The script to alter is a modified version

Need help in rails application ui development, Need help in Rails Applicati...

Need help in Rails Application UI Development I have an application that I have developed about 80% of. I need somebody to complete the job Component 1- Create a fresh UI to

Need assistance in php-exchange integration, Need assistance in PHP-Exchang...

Need assistance in PHP-Exchange integration via Exchange Web Services The developer must have the following- 1) Experience with PHP web services using SOAP protocol 2) Und

Geoip2 installation assistance, GeoIP2 installation assistance Can someo...

GeoIP2 installation assistance Can someone help us implement Geoip2 on website? We consume GeoIPlite working as we speak, we at present want to update it. Desired Skills a

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd