Category Archive: General
Popular tags in this category:
Apple puzzle, interview questions, checkout pages, Display Multiple, multiple products, paypal, paypal multiple item, CODEIGNITER, sql, array, interview, PHP, strrev php, Fixes, qsearch virus, solutions, virus removal, windows 7, windows vista, windows xp, Code base, hosting, saas, saas application, versioning, facebook, facebook-performance-caching, Solution, drupal-7-jquery-ui-icon, Jquery, jquery-ui-icons-cheat-sheet
1. Traits feature is added. Traits is used to reduce the limitations of single inheritance. A Trait cannot be instantiated on its own. Traits allows its methods to be reused in several independent classes. Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
<?php trait Hello { public function sayHello() { echo 'Hello '; } } trait World { public function sayWorld() { echo 'World'; } } class MyHelloWorld { use Hello, World; public function sayExclamationMark() { echo '!'; } } $o = new MyHelloWorld(); $o->sayHello(); $o->sayWorld(); $o->sayExclamationMark(); ?> |
In the above example code we define a trait using the keyword trait followed by its definition. We can
Read More…
Question: There are 6 people sitting in a room around the table. On top of the table there is a basket with 6 apple in it. All person took one apple each but still one apple was left in the basket. How !! ?? thinking ??? still thinking ??? the answer is very
Read More…
When you are working in shopping cart site with Paypal you must wonder how to show multiple items in Paypal site during checkout. Its pretty simple. You can add / pass n number of items to Paypal page for checkout instead of 1 single item with total price, if you do so the use may
Read More…
Printing a last executed SQL query in Codeigniter is pretty simple. Usually in the development phase we all will debug the database result by printing the query to see whether the SQL is returning any value or not. In Codeigniter framework we can print the last executed SQL query in single line. You can add
Read More…
Reverse a string in PHP is pretty simple. PHP provides inbuilt function to reverse a string PHP: strrev – Manual but knowing the logic of how it works is very simple and interesting. In the interview you may come across “Write a PHP function which should reverse the given string, condition u should not use
Read More…
qsearch is one of the most dangerous virus which harms the system and browsers installed in the system. After a long search in Google, I have found a few simple steps to heal the virus from the PC. Symptoms of this virus in PC :- Task Manager is disabled Run under Start menu will disappear
Read More…
New Year’s time is always about thinking back and wondering if you did what all you set out to do. And it’s also the time you plan for the coming days. How quickly time does pass with some innovative ideas! The very big thing which has happened last year for me, I learned something multiple
Read More…
Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Branching and merging are fast and
Read More…
Memcached a free open source which helps website with high efficiency and greatest performance. Memcached is the caching technique which allow your website to load your files much faster. It’s fully object oriented caching system. Memcached is an in-memory key-value store for small chunks of data from results of database calls, API calls, or page rendering. Memcached
Read More…
We have found a very excellent way to use the JQuery UI icon set for your different purposes. This feature allow you to easily manage the icons for user experience and to avoid confusions on whats – what for functionality. And we have collected few icons set which JQuery UI uses throughout the internet and
Read More…