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: string

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

Check Array To See If It Contains A String – in_array()

PHPBy Chris SilveyDecember 7, 2013Leave a comment

If you have an array that contains a hundred different values, you may be wondering how you can check if that array contains a certain string. As you may already know, you can use the foreach() function to echo out each value contained inside the array. But lets imagine that we simply want to execute…

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.…

Remove Commas From A String – str_replace()

PHPBy Chris SilveyDecember 6, 2013Leave a comment

If you find that you have a string that contains commas and you need to remove them you can do the following. Let’s assume your string looks like this. $myString = “1,5,6,11,18”; Now let’s strip those ugly commas from our variable $myString using the str_replace() function. $newString = str_replace( ‘,’, ”, $myString ); That’s it,…

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