In 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 CommentsTutorials / Programming tips Posts
When 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 CommentCodeIgniter natively support storing session in the database. You do not need to do any changes in code, just a few configurations and it will…
1 CommentDesign patterns offer developers ways to solve technical problems in a reusable and elegant way. Probably module pattern is the most used and widely accepted…
Leave a CommentEnabling GZIP compression on Nginx servers is easy and it improves application performance as well as saves bandwidth transfer. By following below steps you can…
Leave a CommentIn this post, I would like to show you creating polymorphic relationships in the Laravel5 application. Probable polymorphic relationships are the most advanced eloquent relationships…
Leave a Comment