Login form



String functions and string operations, PART 4

echo "<br> unikali eilute<hr>";

srand((double)microtime()*1000000);
$unique_str = md5( rand( 1 , 9999));
echo " $unique_str , o ilgis". strlen($unique_str);
?><br><br>palyginimas<hr><?
echo strcmp("bcc", "acca")."<br>";
echo strncmp("acc", "acca",3)."<br>";
echo strnatcmp("ac11", "ac2")."<br>";
echo strcmp("ac11", "ac2")."<br>";
?>


<?

echo  strftime ("%A %e %B %Y"); ?><br><?
setlocale(LC_ALL, "lith");
echo strftime ("%A %e %B %Y");
$locale_info = localeconv();

?><pre><? print_r ($locale_info) ; ?> </pre><?



LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME,

$locale_info

International currency symbol (i.e. USD)
currency_symbol Local currency symbol (i.e. $)
mon_decimal_point Monetary decimal point character
mon_thousands_sep Monetary thousands separator
mon_grouping Array containing monetary groupings
positive_sign Sign for positive values
negative_sign Sign for negative values
int_frac_digits International fractional digits
frac_digits Local fractional digits
p_cs_precedes TRUE if currency_symbol precedes(eina) a positive value, FALSE if it succeeds one 
p_sep_by_space TRUE if a space separates currency_symbol from a positive value, FALSE otherwise 
n_cs_precedes TRUE if currency_symbol precedes a negative value, FALSE if it succeeds one 
n_sep_by_space TRUE if a space separates currency_symbol from a negative value, FALSE otherwise 
p_sign_posn 0 The sign string succeeds the quantity and currency_symbol 
Parentheses surround the quantity and currency_symbol 3
1 The sign string immediately precedes the currency_symbol 
The sign string precedes the quantity and currency_symbol  4
2 The sign string immediately succeeds the currency_symbol 
n_sign_posn 0 The sign string succeeds the quantity and currency_symbol 
Parentheses surround the quantity and currency_symbol  3
1 The sign string immediately precedes the currency_symbol 
The sign string precedes the quantity and currency_symbol  4
2 The sign string immediately succeeds the currency_symbol 
 
[ BBC news ][ Yahoo news ][ Linux guru ][ Webmaster ACE ]