
Search In
LPAD(str,len,padstr)
LPAD mysql funtion returns the string str, left-padded with the string padstr to a length of len characters means if you want to extend a string to a certain length and insert some character in left side of string at the place o
Hello all,
While playing with of code, we came across a situation where had to show a pdf file in our html page and to do that, I found a very simple solution where showed the file by passing the file path to the src attribute of the iframe.
to do
Hello friends,
This time I am here to explain a very common issue in php which if is someone want to exchange the array keys with values, for this you can use a predefined php array function "array_flip ( array $array )". array_flip ( $array ) used
If we want to update UI from a Non-UI thread then runOnUiThread() is the best solution for it.
I am showing Toast in every 25 secs.
Below is the code
private Thread refreshThread;
refreshThread = new Thread() {
@Override
public
Hi Readers,
We all have used array_values, but we use array_values just to get the values from an array. However, we can do much more than that with the help of it.
One of it's alternative use of array_values is in a situation where we have an
We can remove nil elements from an array in number of ways. Here i am demonstrating the frequently used methods for removing nil elements from an array.
1> using present method with reject
>> [ "a", nil, "b", nil, "c", nil ].reject {|e| !
When we show a profile image we get image path from database and show that image as a profile image. But if image not found or image path is not correct then we see a broken image. So we add a conditions there to show a defualt image. But if we use o
Hi Readers,
Today, I will be discussing about the Otherwise Function available in $routeProvider in AngularJS. The main objective of this function is to redirect the end users to a particular route when the user by mistake or intentionally enters
Hello Everyone today I guide you "What is the difference between isset and array_key_exists in PHP"
The below example helps you to differentiate between isset() and array_key_exists() .
isset() will only return true or false
array_key_exists() will
Hello readers, In this blog I will help you to know "What does keyword 'var' do in PHP ?"
It's regarding declaring class new member factors inside PHP4, and it will no longer needed. It'll operate inside PHP5, however it will increase an E_STRICT ca
