Cyclone3 Skin

TOM::Utils::vars

From Cyclone3 Wiki

Currency toolbox.


Contents

genhash()

Syntax:


Output:


genhashN()

Syntax:


Output:


unique_split()

Syntax:


Output:


replace()

Syntax:


Output:


replace_comment()

Syntax:


Output:


replace_sec()

Same as replace(), but more secure, and: without function, return string

Syntax:

$string=TOM::Utils::vars::replace_sec(
 $string,
 'notallow' => ['not allow to replace by this string','and by this string']
)

Output:


CurrencyInt50h()

Syntax:


Output:


s_sort()

Sorts strings as numbers with whitespaces and delimiters .,

Nice functions when you need sort these numbers:

  • 10,5
  • 12.8
  • 12 125.5
  • 128 Kg

Syntax:

foreach (sort {s_sort($values{$a},$values{$b})} keys %values)
{
	...
}

Output: