samples/PhotoAlbum/lib/rb.php
protected function startsWithZeros($value) {
		$value = strval($value);
		if (strlen($value)>1 && strpos($value,'0')===0 && strpos($value,'0.')!==0) {
			return true;
		}
		else {
			return false;
		}
	}
protected function startsWithZeros($value) {
		$value = strval($value);
		if (strlen($value)>1 && strpos($value,'0')===0 && strpos($value,'0.')!==0) {
			return true;
		}
		else {
			return false;
		}
	}
protected function startsWithZeros ( $ value ) { $ value = strval ( $ value ) ; if ( strlen ( $ value ) > 1 && strpos ( $ value , '0' ) === 0 && strpos ( $ value , '0.' ) !== 0 ) { return true ; } else { return false ; } }
Checks whether a value starts with zeros. In this case
the value should probably be stored using a text datatype instead of a
numerical type in order to preserve the zeros.

@param string $value value to be checked.
Checks whether a value starts with zeros . In this case the value should probably be stored using a text datatype instead of a numerical type in order to preserve the zeros .