Bug in "Printing Arrays" in PHP learning

To gather information for a bug report we need the following information:

Ordered Arrays: Learn PHP + Printing Arrays(4/10) + what type of bug(at the end there’s a “1” that should not appear)

For the Post:

Summery of the report:
**Course URL: https://www.codecademy.com/courses/learn-php/lessons/ordered-arrays/exercises/printing-arrays
**Steps to Reproduce: when I do the step “2” of the Instructions and I write the code “echo print_r($favorite_nums)” in the console at the bottom appears a “1” that shouldn’t be there
Fix or Workaround:
Please attach screenshots

Please also tag your bug report with the appropriate language.

Thank You we appreciate your assistance in making Codecademy a better learning place!

This is not a bug, and here’s the reason why it appears

print_r(mixed $value, bool $return = false): string|bool

https://www.php.net/manual/en/function.print-r

as you can see, print_r has a second parameter, which is a boolean.

print_r already prints the value of the array, so there’s no need to actually echo its return value.

Return value is set to true and, when converted to a string, ends up as 1.

ok, thank you very much for your time.