<?php
$texto = "codepad is an online compiler/interpreter, and
a simple collaboration tool.Paste your code below, and
codepad will run it and give you a short URL you can use
to share it in chat or email.";
$resumo = substr($texto, 0, 30);
$address = strtolower(trim(preg_replace('/[^a-zA-Z0-9]+/', '-', $resumo), '-'));
echo $address;
?>