
Search In
Sort() function is used to sort array in ascending order.
Example:
<?php
$numbers = array(9, 6, 3, 22, 12);
sort($numbers);
$length = count($numbers);
for($x = 0; $x < $length; $x++) {
echo $numbers[$x];
ech
You can replace all instance in a string using str_replace with the help of str_replace function.
In this example, str_replace replaces all instances of abc with xyz like this:
echo str_replace("abc","xyz","abcdefghijklmn");
the output will become
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
LOCATE(substr,str), LOCATE(substr,str,pos)
LOCATE function returns the position of first occurrence substring in passed string. The second syntax returns the first occurrence of substring after the given position (the thirds parameter of second synt
For those who are new & trying to use AVplayer in their iphone apps,i would like to share that AVplayer has in built functions for only PLAY & PAUSE as "[self.myAvPlayer play]; & [self.myAvPlayer pause];",which are handy to use,whereas t
In the below example I have created extend array function. Here first I have define array length then extend new array value. You can see below program it will clearly describe to extend array after initialization by creating an new array.
pu
Create:
- Create method use for creating new record with given values of the record.
- Create method return created newly record with given values.
Syntax:
create(cr, uid, values, context=None)
Ex: Here method override for version 7.0:-
def c
Hello Friends,
If you are installing Magento with composer, you might face the issue "Your requirements could not be resolved to an installable set of packages" with the error "magento/product-community-edition 2.0.2 requires ext-xsl
Hello Readers,
In this tutorial, I will explain how to add Store View selection to Module’s Adminhtml
This article assumes you already know how to create Magento Admin grid.
Go to Namespace/Module/Block/Adminhtml/Module/Edit/Tab/Form.ph
Hi, I'm new in Python, so excuse me if the question may be too simple for someone.
I have the following code:
from itertools import product
for a,b in product(range(0,10), range(a,10)):
print (a,b)
but it does not work, a message error t
