active_support

ljust($name, $int)

9: 	public function ljust($name, $int) {
10: 		$spaces = $int - strlen($name);
11: 		$string = '';
12: 		for ($i = 1; $i <= $spaces; $i++)
13: 			$string .= " ";
14: 		return $string . $name;
15: 	}

File: lib/support/active_support.php, #line 9

rjust($name, $int)

23: 	public function rjust($name, $int) {
24: 		$spaces = $int - strlen($name);
25: 		$string = '';
26: 		for ($i = 1; $i <= $spaces; $i++)
27: 			$string .= " ";
28: 		return $name . $string;
29: 	}

File: lib/support/active_support.php, #line 23

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>