
Search In
Hello reader's under this blog we are going to apply a function against each array element. We are using a function to check an array value and if it matches a given value then it will replaced.
To attach a callback function to each arra
Super Global variables are an assosciative array, that are predefined in PHP. Superglobal means they are always accessible and can be used in function, class or file.
They are available in all scopes on script. We can use these variables directly w
Hi Readers,
Many times we need to play music even app is in background. It is normal behavior of AVAudioPlayer to play sound when app is in foreground or active state. But to play sound, music or song even in background state can be achieved by foll
Stub transport is useful for testing the email before actually sending email. It does not actually send an email, it convert mail object to a single buffer and return it with a send mail callback.
In the below code, I have stubbed send method of nod
Hello Readers,
This tutorial will guide you about "How to Set & Retrieve Variable in magento registry ". Registry means creating a new global variable which is to be used later in any magento template file (.phtml). Magento registry fun
The Javascript void operator set the given expression and then returns the output as undefined.
The void operator is employed to amass the undefinable denoting price, typically we tend to use "void(0)" (which is suggests that "
1. Inline css: In inline css we can insert a ‘style’ attribute inside an HTML element. This allows CSS properties on a "per tag" basis. Below is code for inline css in our webpage.
&nbs
Hello programmers,
This blog gonna help you to hide a portlet from the guest users. It's very easy. To hide a portlet for any role, a very simple method is to remove the view permission from the portlet configuration.
Now if you check th
We can create themes using Theme Generator. Liferay Theme Generator is an easy to use command line tool to generate the themes. Liferay plugin SDK isn't required to create the liferay theme and it works well with liferay 6.2 and 7 and probably up
Anonymous method is a method without any name and return type but have a body content and the optional arguments. This type of method is created by using the delegate keyword. Return type of the anonymous method is dependence on the return stat
