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!
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
Seth Warner5,348 Points
Im sure after going over this a little more ill under stand why to choose "use" over global in certain situations. why?
I guess it could look sloppy, and I'm thinking you could "use" multiple marbles from above for massive functions? like use($cat), use($dog), etc?
If not why wouldn't you just simply "use" global..unless it is mandatory for certain actions like single quotes for double quotes for certain things..