Call by reference in php with example
Let's understand the concept of call by reference by the help of examples. variable $str is passed to the adder function where it is concatenated with 'Call By Reference' string.
Read MoreFind the Largest Number in an Array using php
Example for getting largest number in an array
Read MoreHow to find minimum value of an array
It's very simple to find the minimum value of an array using foreach loop. Create an array with some numeric value. Now create a temporary variable $temp in which stored array’s first index’s value i.e 45.
Read MoreAdd and Remove event listener javascript
Add and Remove event listener with javascript is very simple. First, you need to create your function with your business logics. We have taken an example of stop and start scrolling logic.
Read MoreHow to get hashtag value on hashchange
You can get the value of #hashtag from the URL if user click on any link in your page. There are two ways to find the id, First by using Javascript and the second is by jQuery.
Read MoreHow do I hide an element when printing a web page
Sometime we need to show all content on the web page but hide some content for the print. So, you can use this trick for that.
Read MoreHow to find prefix and suffix of the word in javascript
First of all, you have to know that how to get the currently selected text on the page by using the JavaScript. So, Javascript provided a method for retrieving the current selection of the page by using window.getSelection().
Read MoreHow to justify content in div
You can justify the content of your page or content within the layout. The justify-content property aligns the flexible container's items when the items do not use all available space on the main-axis (horizontally).
Read MoreHow do you Encrypt and Decrypt a PHP String
Mcrypt is a replacement for the popular Unix crypt command. crypt was a file encryption tool that used an algorithm very close to the World War II Enigma cipher. Mcrypt provides the same functionality but uses several modern algorithms such as AES.
Read More