Loading....
money_format — Formats a number as a currency string
[php]<?php
$number = 1234.56;
// let's print the international format for the en_US locale
setlocale(LC_MONETARY, 'en_US');
echo money_format('%i', $number) . "\n";
// USD 1,234.56
[/php]
[php]
// Italian national format with 2 decimals`
setlocale(LC_MONETARY, 'it_IT');
echo money_format('%.2n', $number) . "\n";
// Eu 1.234,56
// Using a negative number
$number = -1234.5672;
// US national format, using () for negative numbers
// and 10 digits for left precision
setlocale(LC_MONETARY, 'en_US');
echo money_format('%(#10n', $number) . "\n";
// ($ 1,234.57)
// Similar format as above, adding the use of 2 digits of right
// precision and '*' as a fill character
echo money_format('%=*(#10.2n', $number) . "\n";
// ($********1,234.57)
// Let's justify to the left, with 14 positions of width, 8 digits of
// left precision, 2 of right precision, withouth grouping character
// and using the international format for the de_DE locale.
setlocale(LC_MONETARY, 'de_DE');
echo money_format('%=*^-14#8.2i', 1234.56) . "\n";
// Eu 1234,56****
// Let's add some blurb before and after the conversion specification
setlocale(LC_MONETARY, 'en_GB');
$fmt = 'The final value is %i (after a 10%% discount)';
echo money_format($fmt, 1234.56) . "\n";
// The final value is GBP 1,234.56 (after a 10% discount)
?>
[/php]
fmod — Returns the floating point remainder (modulo) of the division of the arguments [php]<?php $x = 5.7; $y = 1.3; $r = fmod($x, $y); // $r equals 0.5, because 4 * 1.3 + 0.5 = 5.7 ?> [/php] ceil — Round fractions up [php]<?php echo ceil(4.3); // 5 echo ceil(9.999); // 10 echo ceil(-3.14); // -3 ?> [/php] round — Rounds a float [php]<?php echo round(3.4); // 3 echo round(3.5); // 4 echo round(3.6); // 4 echo round(3.6, 0); // 4 echo round(1.95583, 2); // 1.96 echo round(1241757, -3); // 1242000 echo round(5.045, 2); // 5.05 echo round(5.055, 2); // 5.06 ?>[/php] number_format — Format a number with grouped thousands [php]<?php $number = 1234.56; // english notation (default) $english_format_number = number_format($number); // 1,235 // French notation $nombre_format_francais = number_format($number, 2, ',', ' '); // 1 234,56 $number = 1234.5678; // english notation without thousands separator $english_format_number = number_format($number, 2, '.', ''); // 1234.57 ?> [/php]
object
.
[php]<?php
$directory = new Directory('.');
var_dump(method_exists($directory,'read')); // return bool(true) if function exist
?>[/php]
func_num_args — Returns the number of arguments passed to the function
[php]
<?php
function foo()
{
$numargs = func_num_args();
echo "Number of arguments: $numargs\n";
}
foo(1, 2, 3);
?>
[/php]
Output:
Number of arguments: 3
void testInstall();
This function verifies that all required working folders of the Smarty installation can be accessed. It does output a corresponding protocoll.
Step1 : Installing vQmod
Step 2 : Installing vQmod Manager
Step1 : Installing vQmod ;
download latest vqmod from following link then upload vqmod folder in the root folder
http://code.google.com/p/vqmod/downloads/list
after uploading vqmod folder it should looks like screenshot below
3.the go to the url to install vqmod : www.youshop.com/vqmod/install then you will see successful message after correct vqmod installation. Then follow Step2
Step 2 : Installing vQmod Manager ;
vQmod Manager is en opencart extension enable us “to upload vqmod xml file” and “view error logs by xml file ”
Visit following link and download and upload the file to correct folder.
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=2969&filter_search=%20vqmod%20manager
Then go to admin panel => Extensions => vQmod Manager => install and save . After that the menu under Extension will lookslike screenshot below
referance: http://octutorial.com/index.php?route=product/product&product_id=47
[abc] |
A single character of: a, b or c |
[^abc] |
Any single character except: a, b, or c |
[a-z] |
Any single character in the range a-z |
[a-zA-Z] |
Any single character in the range a-z or A-Z |
^ |
Start of line |
$ |
End of line |
\A |
Start of string |
\z |
End of string |
. |
Any single character |
\s |
Any whitespace character |
\S |
Any non-whitespace character |
\d |
Any digit |
\D |
Any non-digit |
\w |
Any word character (letter, number, underscore) |
\W |
Any non-word character |
\b |
Any word boundary |
(...) |
Capture everything enclosed |
(a|b) |
a or b |
a? |
Zero or one of a |
a* |
Zero or more of a |
a+ |
One or more of a |
a{3} |
Exactly 3 of a |
a{3,} |
3 or more of a |
a{3,6} |
Between 3 and 6 of a |
This class provides a Web interface to create and edit text files.
It was meant to let an user edit Smarty template files but it can be used to edit other types of text files.
The class can generate an interface based on Web page forms to let the user choose and edit text file existing in a given directory or add a new text file.
Referans:
http://www.phpclasses.org/package/2156-PHP-Web-interface-to-create-and-edit-text-files.html
The Smultron text editor is a program built for Mac OS X and mobile iOS devices. The software has syntax highlighting features which include over 90 different languages. You can also create new documents stored in your iCloud account to retrieve from any computer. This is one rich IDE to grab right off the Mac App Store and it’s great for perfect developers.
http://www.gumbyframework.com/features
Gumby Framework includes multiple types of grids with differentcolumn variations which enables you to be flexible throughout an entire project's lifecycle. From concept to deployment, Gumby Framework follows your lead.