<?php // your code goes here$x = " hello World"; var_dump(trim($x));
Standard input is empty
string(16) "hello World"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!