<?php function get($post, $length) { $end = substr($post, 0, $length); return $end; } // How to use ? o.O // get($your_post_name, number_of_lengths_to_row); // That was so hard? ?>