<?php $value = "Find string position..."; echo "Position of 'position' in $value is " . strpos($value, 'position') . "<br/>"; echo "Length of $value is " . strlen($value); ?>Output:
Position of 'position' in Find string position... is 12 Length of Find string position... is 23
No comments:
Post a Comment