Mohan Babu Vejendla

Mohan Babu Vejendla

What is different between Integer and String ??

What is different between Integer and String ??

4 Answers

Michael Piercy

1,756 Points

Michael Piercy

Michael Piercy

1,756 Points

July 22, 2015 8:21am

An integer is a variable that specifically holds a numerical value. Whereas a string is a variable that can hold a range of characters (including numbers). Strings are usually enclosed in inverted commas like so: "This is a string." Where as Integers are just a number like so: 732

Mohan Babu Vejendla

Mohan Babu Vejendla

Michael Piercy

Michael Piercy

Glad it helped. Could you mark my answer above as the approved answer for your question? It may help other people with the same query.

Thanks.

Mohan Babu Vejendla

1,315 Points

Mohan Babu Vejendla

Mohan Babu Vejendla

1,315 Points

July 22, 2015 8:45am

Yes here ,
STRING : is a variable that can hold a range of characters (including numbers).
strings are usually enclosed in inverted commas like so: "This is a string."
where as INTEGERS are just a number like so: 732

Michael Piercy

1,756 Points

Michael Piercy

Michael Piercy

1,756 Points

July 22, 2015 9:30am

Please mark my original answer as the correct answer.

Mohan Babu Vejendla

1,315 Points

Mohan Babu Vejendla

Mohan Babu Vejendla

1,315 Points

July 22, 2015 8:49am

Here in array section, what is print_r() ?

Michael Piercy

1,756 Points

Michael Piercy

Michael Piercy

1,756 Points

July 22, 2015 9:30am

You should ask this in a new question instead of in the comments of this question. More people will see your question and be able to help you then.

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.