Frage im Vorstellungsgespräch bei Robert Half

Reverse a string in php. Some basic troubleshooting on error output