InputHint
InputHint – JQUERY/PHP plugin that adds hints with variants of the entered text to input fields, with the possibility of their selection by the user, and filling the field with text from the selected hint.
InputHint – JQUERY/PHP plugin that adds hints with variants of the entered text to input fields, with the possibility of their selection by the user, and filling the field with text from the selected hint.
When developing online projects, it is often necessary to save the HTML page as a document that can be used separately, for example, sent by e-mail, viewed and edited offline. A convenient way is to export the HTML page to one of the most commonly used text formats – doc.
The free open-source PHP-module “html_to_doc” can be used to export the HTML page to the DOC document. It can convert the HTML to the DOC document, which will be correctly processed by the text editor MS Word. If the HTML page includes images, they will be embedded in the DOC document.
The PHP module can be downloaded from https://github.com/Korchy/html_to_doc
PHP supports the Late Static Bindings mechanism. The full class name with static inheritance we can get by calling the function:
1 |
get_called_class() |
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<?php class Parent { public static function getName() { echo get_called_class(); } } class Child extends Parent { } Parent::getName(); Child::getName(); ?> // Parent // Child |
To check how match time code execution takes you need to frame checking code with following instructions:
1 2 3 4 5 6 7 |
<?php $StartTime = microtime(true); // Checking code sleep(rand(5,10)); // End of checking code echo "Executed for: ".(microtime(true)-$StartTime)." sek."; ?> |
This example result:
Executed for: 8.9997079372406 sek.
Little external plugin for Wordpress TinyMCE Advanced Editor. Adds new button to the editor menu to set start values of numeric lists.
Appends “start” attribute to “OL” tag.
WordPress TinyMCE Advanced Editor plugin – setting start value for numeric listRead More »