[SP-pm] Separar o primeiro do resto

Tiago Peczenyj tiago.peczenyj at gmail.com
Tue Apr 30 15:37:41 PDT 2013


Seguinte: tenho X bytes como

$x="12345"

E quero pegar o primeiro e o resto:

($a,$b) = magica $x;

$a = 1
$b = 2345

Comofas?

Eu posso fazer bytes::substr 2 vezes mas ta feio...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/saopaulo-pm/attachments/20130430/9fdb2cb5/attachment.html>


More information about the SaoPaulo-pm mailing list