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

PHP Build a Simple PHP Application Listing Inventory Items Introducing Arrays

Jorge Díaz
Jorge Díaz
30 Points

I am getting this error in the code challenge http://prntscr.com/5tn2jn and http://prntscr.com/5tn32h

I tried the that in a localhost enviroment and it showing a count of 3 letters which is correct.

letters.php
<?php
$letters = array("D", "G", "L");
echo count($letters);
?>

1 Answer

Zachary Green
Zachary Green
16,359 Points

did you leave all the code in. you might get an error if the 'complete' output is not there