News:

Build a stunning handcrafted website with IT Acumens

Main Menu

Substring function in php

Started by sajiv, Sep 26, 2008, 04:28 PM

Previous topic - Next topic

sajiv


<?php
header ('Content-type: text/html; charset=utf-8');
echo $haystack = 'Iñtërnâtiônàlizætiøn';
$substr = substr($haystack, 0, 13); // Position 13 is in the middle of the ô char
print "Substr: $substr
";
?>


:acumen