[ create a new paste ] login | about

Link: http://codepad.org/9Gnv1NEe    [ raw code | output | fork ]

PHP, pasted on Mar 11:
1
2
3
4
<?php
	$str = '---this-is-my-page---';
	var_dump( trim($str, '-') ); //string(15) "this-is-my-page"
?>


Output:
1
string(15) "this-is-my-page"


Create a new paste based on this one


Comments: