What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-01 00:17:02
nl2br javascript
function nl2br (str, is_xhtml) { // http://kevin.vanzonneveld.net // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) // + improved by: Philip Peterson // + improved by: Onno Marsman // + improved by: Atli Þ&oacut... Add solution -
PHP 2021-08-31 21:51:02
role wise login in ajex and php
-- -- Database: `php_multiplelogin` -- -- -------------------------------------------------------- -- -- Table structure for table `masterlogin` -- CREATE TABLE `masterlogin` ( `id` int(11) NOT NULL, `username` varchar(15) NOT NULL, `email` varch... Add solution -
PHP 2021-08-31 21:05:02
php multibyte string shuffle
php > $string = "Pretend I'm multibyte!"; php > $len = mb_strlen($string); php > $sploded = array(); php > while($len-- > 0) { $sploded[] = mb_substr($string, $len, 1); } php > shuffle($sploded); php > echo join('', $splode... Add solution -
PHP 2021-08-31 20:42:02
wordpress create account function
// Simple wp_create_user( 'johndoe', 'passwordgoeshere', '[email protected]' ); // wp_insert_user() for more fields $user_data = array( 'ID' ( null | integer ), 'user_pass' ( null | string ), 'user_login' ( null | string ), 'user_nicename' ( n... Add solution -
Other 2021-08-31 20:27:02
custom post type
<?php $args = array( 'post_type' => 'product', 'posts_per_page' => 10, ); $loop = new WP_Query($args); while ( $loop->have_posts() ) { $loop-... Add solution -
PHP 2021-08-31 19:02:02
email validation php
<?php $email = "[email protected]"; // Validate email if (filter_var($email, FILTER_VALIDATE_EMAIL)) { echo("$email is a valid email address"); } &nb... Add solution -
PHP 2021-08-31 18:00:01
typo3 add backend skin
insert in ext_tables.php ####################################################################### # Add custom css for backend $GLOBALS['TBE_STYLES']['skins'][$_EXTKEY] = array(); $GLOBALS['TBE_STYLES']['skins'][$_EXTKEY]['name'] = $_EXTKEY; $GLOBALS['TBE... Add solution
Best helpers
Ranking is empty