PHP’s built-in Web Server designed specifically for development and testing. Since PHP5.4, CLI SAPI comes with a built-in web server. A Built-in web server makes…
Leave a CommentMonth: January 2016
if ($(‘#myElement’).length > 0) { // it exists }
Leave a Commentif($(‘#myDiv’).is(‘:empty’)) { // do something }
Leave a Comment$(‘#element’).hover( function(){ $(this).addClass(‘hover’) }, function(){ $(this).removeClass(‘hover’) } )
Leave a CommentIn this post I would like to show how you can add text to an image with PHP, GD Library. In this post, we will…
2 CommentsWhen you have web page too long, it is recommended to provide your users easy navigation mechanism.You we can provide it in many ways like…
Leave a CommentAngularJS isArray() is one of the useful ng function. This function is used to identify if a reference is array or not. This function return…
Leave a CommentThe array_change_key_case() function changes all keys in an array to lowercase or uppercase. Syntax: array_change_key_case(array,case); array – The array to work on CASE_LOWER – Default…
Leave a Comment<?php $str=”foo,bar,baz,bat”; $arr=explode(“,”,$str); // print_r($arr); ?>
Leave a CommentBelow function takes hex code (e.g. #eeeeee), returns array of RGB values. function hex2rgb( $colour ) { if ( $colour[0] == ‘#’ ) { $colour…
Leave a CommentToday I got a situation where I need automatically zero filled number. I realized it could be done much str_pad. The reason I am writing…
Leave a CommentIn this post, I would like to show you saving config data in the database in your CodeIgniter application. And I will show you, How…
Leave a CommentIn PHP we have in-build functions to replace white-space from the start and end of the string these are trim, ltrim and rtrim. These functions…
Leave a CommentWebFontConfig = { google: { families: [ ‘PT+Sans:400,400italic:latin’, ‘Ubuntu:300,400,500:latin’ ] } }; var cb = function() { var wf = document.createElement(‘script’); wf.src = ‘//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js’; wf.type…
Leave a Comment/** * Get google fonts * * @param integer $amount – Return a chuck of fonts * * @return Array of fonts */ function get_google_fonts(…
Leave a Comment