tutorial – BuildyourSite https://buildyoursite.gr Web Programming Blog Sat, 26 Mar 2016 14:13:56 +0000 en-US hourly 1 https://wordpress.org/?v=4.4 PHP Object oriented programming with classes and functions. https://buildyoursite.gr/object-oriented-programming-in-php-with-classes-and-functions-tutorial-1 https://buildyoursite.gr/object-oriented-programming-in-php-with-classes-and-functions-tutorial-1#respond Fri, 19 Sep 2014 23:32:45 +0000 http://buildyoursite.gr/?p=108 In this post we will try to found out how we can organize our code in php in objects and understand the fundamentals of object oriented programming.Are you ready?   <?php   class Example { // scope: where you can access the variable outside of the class // php4: var // php5: private,public or protected […]

The post PHP Object oriented programming with classes and functions. appeared first on BuildyourSite.

]]>
https://buildyoursite.gr/object-oriented-programming-in-php-with-classes-and-functions-tutorial-1/feed 0
How to make an array from csv in php https://buildyoursite.gr/how-to-make-an-array-from-csv-in-php https://buildyoursite.gr/how-to-make-an-array-from-csv-in-php#respond Fri, 19 Sep 2014 23:28:47 +0000 http://buildyoursite.gr/?p=106 This is a tutorial that demostrates how from a csv we can create an array in php.     How to Convert a comma separated file into an associated array.   <?php function csv_to_array($filename='', $delimiter=',') {   ini_set('auto_detect_line_endings',TRUE); if(!file_exists($filename) || !is_readable($filename)) return FALSE;   $header = NULL; $data = array(); if (($handle = fopen($filename, 'r')) […]

The post How to make an array from csv in php appeared first on BuildyourSite.

]]>
https://buildyoursite.gr/how-to-make-an-array-from-csv-in-php/feed 0