Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

sort() & rsort() function in PHP

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

Replacing all instances in a string

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

How to show pdf file in html page

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) function mysql

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

How to stop a video in AVplayer in iOS

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

How to extend array after initialization by creating an new array

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

How to override create method

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

magento/product-community-edition 2.0.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system

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

How To Add Store View Selection In Magento Admin Grid?

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

How to change itertools.product parameters while running

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

1 497 596
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: