* { box-sizing: border-box; } body {margin: 0;}*{box-sizing:border-box;}body{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;} In this post, I’ll show you how to use PHP’s built-in functions to read and print the contents of a CSV file and convert it into an array. We’ll use fopen() and fgetcsv() to read the contents of a CSV file, then we’ll convert it into an… Continue reading Read a CSV to Array in PHP
Tag: Array
Parse XML to an Array in PHP With SimpleXML
In this post, you’ll learn how to parse XML into an array in PHP. SimpleXML is a PHP extension that makes this possible. In your day-to-day PHP development, sometimes you’ll need to deal with XML content. Whether it’s exporting data as XML documents or processing incoming XML documents in your application, it’s always handy to… Continue reading Parse XML to an Array in PHP With SimpleXML
How to Create Your Own AJAX WooCommerce Wishlist Plugin
In this tutorial we will create lightweight wishlist functionality for WooCommerce using AJAX, WordPress REST API, and SVG graphics. WooCommerce doesn’t come with wishlist functionality as standard, so you’ll always need to rely on an extension to do the work for you. Unless you build it yourself for complete control.. Wish Upon a Star Wishlist… Continue reading How to Create Your Own AJAX WooCommerce Wishlist Plugin
Show WordPress Related Posts With Taxonomy and a Custom Post Type
What You’ll Be Creating Sometimes you want your blog posts to appear on more pages in your WordPress site than just your blog. You’ve already got the option of using category and taxonomy archives, as well as tags. This can help you divide up your content and add a variety of sections to your blog… Continue reading Show WordPress Related Posts With Taxonomy and a Custom Post Type
Understand Arrays in PHP
* { box-sizing: border-box; } body {margin: 0;} In this post, you’ll learn the basics of arrays in PHP. You’ll learn how to create an array and how to use associative and multidimensional arrays, and you’ll see lots of examples of arrays in action. What Is an Array? In PHP, an array is a data… Continue reading Understand Arrays in PHP