<?php $nome = 'joao.silvestre'; echo $nome[0].substr(explode('.', $nome)[1], 0, 7);
Standard input is empty
jsilvest
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!