
Search In
Hello Reader's if you have an array and you want it to converted into string with separated by coma then by using PHP you can do this as follow:-
You have to use Implode function
$arr = array(1,2,3,4,5,6,7,8,9);
$string = rtrim(implode(',', $arr)
INSERT IGNORE:
INSERT IGNORE is used for handling duplicacy in a table as it ignores the query if the data is already present in the table and if the data does not exist then new row will be inserted.
Syntax:
INSERT IGNORE INTO tablename (column1,
If you want to create Sensor function you can use my below example code. The android platform supports three categories of sensors. 1st Motion Sensors, 2nd Environmental sensors and 3rd is Position sensors. In the below code I have used SensorEventLi
Serialize is a function which is used to convert a storable representation of a value. It converts an array into string containing a byte stream representation of a value.
<?php
$serializeddata = serialize(array('apple', 'mango', 'banana
A function that call itself is known as *Recursive Function*. Recursive function keeps calling itself. We have to set a condition that will stop it, otherwise it will run infinitely. This condition is known as a base case. Basically, base case tells
BIT_LENGTH(str)
BIT_LENGTH function returns the length of the string str in bits.
for example,
the bit length of text is 32 and hello is 40.
mysql> SELECT BIT_LENGTH('text');
+--------------------+
| BIT_LENGTH('text') |
+--------------------+
Hello Reader's If you are working on Javascript and want to get the count of array then you can use the syntax as below:-
var car = ["mode1", "model2", "model4", "model5"];
car.length;
output:
4
And if you want to get last element of array then
The return statement indicate that return exits in a function and optionally pass back an expression to the caller variable and return statement with no arguments is the same as return None variable.
For example you can see below code and try it.
#
In return statement return exits a function, optionally passing back an expression to the caller and value. A return statement with no arguments is as same as return None and function. For example you can see below example for return statement.
# Fu
In python, tuples is just like a list but little differ form list, To say correctly tuples is a sequence of immutable Python objects and it can not be change just like a list also tuples use parentheses.
Creating a tuple is as simple you have to just
