Latest Post

How to remove empty values from array in PHP?

you have array with empty value and you want to remove all empty value from that array without loop. you can remove your all empty value from array without loop. PHP array_filter function through you can remove all empty value, you can do both way try and see following example how to do this : <strong>Example:</strong> <pre class="language-php"> $example = array(100, "hari", "","hey", "", 77, "hello"); $result = array_filter($example, function($value) { return !empty($value); }); print_r($result); <br/> $resultDirect = array_filter($example); print_r($resultDirect); </pre> <strong>Out.....

By Hardik Savani | February 28, 2016 | | 5157 Viewer | Category : PHP

How to revoke 'git add' before 'git commit' ?

Sometimes you need to undo your git file before you git comment command. Because you made a some misteck or wrong code and you did git add using "git add ." command then you think how to undo your code before git commit command. But you can do that using git reset command, if you need to undo all file Or you may need to undo just one then you can do using git reset command, you can see bellow command. <strong>Example:</strong> <pre> // For Spesific file git reset <filename> // For all files git reset </pre>

By Hardik Savani | February 28, 2016 | | 1140 Viewer | Category : Git

How to create laravel 5 widgets ?

In this post you can learn how to create your own widgets in laravel 5.2, First thing why we are create widgets, So we can use widget because when we can create re-usable code, for example you have manu items and comes from database like home, items, products, aboutus, contact us etc. you require to display in top header, in sidebar and in footer. But in top you have to just display home and aboutus, and in sidebar products and items same that way in footer. So, basically you have to display in three place in your site page. widgets through you can make one function or view and call just one w.....

By Hardik Savani | February 27, 2016 | | 11488 Viewer | Category : Laravel Pingpong

How to get ckeditor value with tags on ajax-submit ?

If you are use ckeditor for textarea and you need to fore ajax submit or form js submit, but you can't find ckeditor value in your controller or php file. So, first you have to update field using CKEDITOR.instances. so you can try to following code. <pre class="language-javascript"> for ( instance in CKEDITOR.instances ) CKEDITOR.instances[instance].updateElement(); </pre>

By Hardik Savani | February 26, 2016 | | 2348 Viewer | Category : PHP Javascript jQuery

How to get max attribute value in jquery?

Sometimes, you have a many tag with same class and attribute with value, but you need to find maximal value of attribute from that comman class, In bellow you have same html tag: <pre class="code language-html"> <ul> <li class="test" data-id="3">hi</li> <li class="test" data-id="5">hey</li> <li class="test" data-id="1">hello</li> </ul> </pre> Now, you require to get max value, i mean you need to 5, because that is big value from other, so you can get maximal value from this way: <pre class="language-javascript"> var max = 0; $('.test').each(fu.....

By Hardik Savani | February 23, 2016 | | 1126 Viewer | Category : Javascript HTML jQuery

scrollTop ID meta http-equiv tag Tutorial Bootstrap maxlength plugin Sublime text 3 bootstrap-growl AngularJS Filter Behance API ajaxComplete React JS Trigger Artisan JWT Null Captcha code maatwebsite QR Code Confirm Box Setup Inserted Id milon/barcode slice() Bootstrap Confirmation js plugin Form JS Plugin Segment Chosen JS Bootstrap Notify Plugin Links Number Join lowercase array_change_key_case SEO ANDROID_HOME parse Git Ionic public_path Jquery Plugin Clear Particular gravatar Laravel Passport colorpicker Image Tracking Calculate jQuery Upgrade Location Scratch Class apache2 Add First socket Magento Datepicker Append AngularJS Google Map Bootstrap-lightbox Plugin Path Ionic framework Vue.JS select box search Limit getQueryLog clipboard.js View select2.js Base URL Strings node.js roumen/feed package csrf_token Effect Google Chart Mediafıre API Capitalize Fetch Google API Attr Reset Data Solve CSS mysqld.sock API Automatically CRUD Linkedin API Remember me Scroll chmod filesize() date_format() Current Page Socialite Key Constraint Jquery UI X-editable Plugin REST Convert Master preg_match Phonegap Twitter OAuth Bootstrap Tokenfield Plugin Service Provider helper Ajax Request Language Twitter Bootstrap XSS New Features Flash Message Grayscale Image Parameters Link Last Each Progress Bar Numeric Apache Highlight JS refspec Sortable Namespace Scout Package Interface Client side validation JS yajra/laravel-datatables-oracle Letter Email Verification Mailchimp API Folder Object to Array Top setTimeout() SUBSTRING_INDEX() bootstrap-multiselect plugin Origin Auth Index dompdf no-captcha Control