Pramod T P

Search
Skip to content
  • Home
  • PHP
  • WordPress
  • Linux
  • Magento
  • My SQL
  • Profile
  • comments

Daily Archives: April 19, 2011

PHP

Randomizes the order of the elements in an array – PHP

April 19, 2011 Pramod T P Leave a comment
$numbers = range(0, 9);
shuffle($numbers);
foreach ($numbers as $number) {
 echo $number;
}
ArrayPHPString functions
PHP

Create an array containing a range of elements – PHP

April 19, 2011 Pramod T P Leave a comment
<?php
 $numbers = range(0, 9);
 foreach($numbers as $value)
   echo $value." ";
//Will output  0 1 2 3 4 5 6 7 8  9
?>
ArrayPHPString functions
PHP

Create an array containing a range of elements – PHP

April 19, 2011 Pramod T P Leave a comment
<?php
 $numbers = range(0, 9);
 foreach($numbers as $value)
   echo $value." ";
//Will output  0 1 2 3 4 5 6 7 8  9
?>
ArrayPHPString functions

Posts navigation

← Previous 1 2 3

Zend | Magento Certified PHP | eCommerce Architect

For Latest Updates
Visit phpcodez.com

Categories

Recent Posts

  • Regular expression
  • preg_match
  • Redirect root domain to a subdomain .htaccess
  • Redirect root domain to a subfolder .htaccess
  • Force SSL htaccess
April 2011
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  
« Mar   May »

Recent Comments

togel online's avatartogel online on How to terminate the current s…
business funding's avatarbusiness funding on compare two strings – ja…
unsecured loans uk's avatarunsecured loans uk on Function to add an element int…
treating back pain's avatartreating back pain on Submit HTML form to pop up pag…
Pura Cleanse's avatarPura Cleanse on Add the block "Based on y…
  • RSS - Posts
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Pramod T P
    • Already have a WordPress.com account? Log in now.
    • Pramod T P
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar