<?php $text = '32137hyb8bhbhu837218nhbuhuh&3298j19j2n39'; echo substr($text, 0, strrpos($text, '&'));
Standard input is empty
32137hyb8bhbhu837218nhbuhuh
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!