Skip to content
011 322 44 568500 Beverly Boulevard Los Angeles, CA 90048
Linkedin
Beckin – Certified Magento & Salesforce Commerce Cloud Developer.
Beckin.com has been providing professional custom web development for over 10 years.
Beckin - Certified Magento & Salesforce Commerce Cloud Developer.Beckin - Certified Magento & Salesforce Commerce Cloud Developer.
  • Home
  • About
  • Sevices
  • Testimonials
  • Contact
  • Blog
Search
  • Home
  • About
  • Sevices
  • Testimonials
  • Contact
  • Blog

Tag Archives: array

You are here:
  1. Home
  2. Entries tagged with "array"

Insert A Comma Seperated String Into An Array – explode()

PHPBy Chris SilveyDecember 7, 2013Leave a comment

If you need to insert a comma seperated string into a variable you can accomplish this with the following code. Let’s take a look at our string.   We can insert our string into an array by simply using the explode() function.   Now if we use the print_r() function we can view our array.…

Count Non-Empty Array Values

PHPBy Chris SilveyNovember 20, 2013Leave a comment

Counting the elements in an array is quite simple. $myarr = array(1,3,5); $counter = count($myarr);   The $counter variable will now contain the value of 3. However, if your array contains empty values like the following array it would still return 3. Array ( [0] => [1] => [2] => 20 [3] => 23 )…

Beckin - Certified Magento & Salesforce Commerce Cloud Developer.
© 2008 - 2021 All rights reserved. Beckin.com
  • Certified Magento & Commerce Cloud Developer
Useful Links
Go to Top