<?php $str = "000000000000";echo chunk_split($str, 3, ' ');
Standard input is empty
000 000 000 000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!