Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Mohan Babu Vejendla
1,315 PointsWhat is different between Integer and String ??
What is different between Integer and String ??
4 Answers

Michael Piercy
1,756 PointsAn 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
Hope this helps.

Mohan Babu Vejendla
1,315 Pointsokay thank you

Michael Piercy
1,756 PointsGlad 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 PointsYes 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 PointsPlease mark my original answer as the correct answer.

Mohan Babu Vejendla
1,315 PointsHere in array section, what is print_r() ?

Michael Piercy
1,756 PointsYou 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.
thomascawthorn
22,985 Pointsthomascawthorn
22,985 PointsSounds good to me! Best answer given.
Maribel Falcon
10,918 PointsMaribel Falcon
10,918 PointsThank you :) !