Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Christopher Wehkamp
Christopher Wehkamp
1,926 Points

What are "internal functions" and how does (is_array($arr) work?

Hampton glazes right over this like we have already covered it, but this has never been referenced in the previous PHP videos of the PHP track.

What is an internal function? How is it different from other functions?

What does the function is_array() do? How does it do what it does?

Are there presumably many other internal functions like is_integer() or is_boolean() which perform checks on datatypes in the same way?

1 Answer

Simon Coates
Simon Coates
28,694 Points

internal functions are functions that are defined by php. you get these for free. The documentation for is_array is here. Yest, there are a bunch of similar functions for the other datatypes.