Showing entries 1 to 10 of 937
10 Older Entries »
Displaying posts with tag: PHP (reset)
PHP Implode Example | PHP implode() Function Tutorial

PHP Implode Example | PHP implode() Function Tutorial is today’s topic. The implode function in PHP is used to join the elements of an array with a string. The implode() function returns the string from the elements of the array. The function is binary-safe. The implode() function returns a string containing the string representation of all the array items in the same order, with a glue string between each element. We join the array elements with the string. Just like join() function, implode() function also returns the string formed from the elements of the array.

PHP Implode Example

If we have an array of elements, we can use the implode() function to join them all to form one string. See the syntax of PHP implode() function.

Syntax

implode(separator,array)

The separator parameter is optional and specifies what to put between the array elements. …

[Read more]
PHP str_replace Example | PHP str_replace() Function Tutorial

PHP str_replace Example | PHP str_replace() Function Tutorial is today’s topic. PHP str_replace() function replaces some characters with some other characters in the string. The str_replace() is the built-in function in PHP and is used to replace all the occurrences of a search string or array of search strings by the replacement string or array of replacement strings in the given string or array respectively.

PHP str_replace Example

You can replace some part of the string with the provided string value. If the search or replace are arrays, their elements are processed first to last. The str_replace() function works by the following rules.

  1. If a string to be searched is the array, it returns an array.
  2. If a string to be searched is the array, find and replace is performed with an every array element.
  3. If both find and replace are arrays, and replace has fewer elements than …
[Read more]
Jquery Duplicate Fields Form Submit with PHP

This tutorial explains How to submit jquery duplicate/clone field values to form with PHP.  In this example we are going to provide very simple example and using existing jquery plugin, so here we are using relCopy.js jquery plugin to duplicating the existing field.


                                             Download                    …

[Read more]
MySQL and PHP Basics Part I

I have had some requests to write some blogs on the basics of using PHP and MySQL together.  This will not be a series for the experienced as it will start at a level where I will go into a lot of details but expect very few prerequisites from the reader.  If this is not you, please move on. If it is you and you read something you do not understand, please contact me to show me where I assumed too much.

PHP and MySQL are both in their mid twenties and both vital in the worlds of developers.  With the big improvements in PHP 7 and MySQL 8, I have found a lot of developers flocking to both but stymied by the examples they see as their are many details not explained. So let's get to the explaining!
1. Use the latest software
If you are not using PHP 7.2 or 7.3 (or maybe 7.1) then you are missing out in features and performance.  The PHP 5.x series is deprecated, no longer support, and …

[Read more]
Your SQL IS NOT JavaScript (neither PHP)

IS NULL, IS NOT NULL, truthiness among other assertions on MySQL and PostgreSQL

People like to complain about JavaScript, how can one thing be equal to the other, i.e. null == undefined evaluates to true unless you use the triple equals ===. Other dynamic typed languages have its peculiarities, such as Ruby where 0 == true evaluates to true, the reason for Ruby is that considers 0 as a value and any value evaluates to true.

How about SQL? The answer is… it depends.

Which database are you using?

Some may be more forgiving, like MySQL doing casts for you all over the place, or more strict like PostgreSQL where you can only compare the truthiness of something of the same type.

[Read more]
How to Install LEMP on Ubuntu 18.04

The LEMP stack is a web development platform for hosting static and dynamic websites. It is a combination of free and open-source software including Linux, Nginx, MySQL, and PHP. It is an alternative to the highly popular LAMP stack, the only difference being having Nginx as a web server instead of Apache. Requirements: For the […]

Why I Started Part-Time Freelancing Again On Upwork

I stopped freelancing on upwork in 2011. I used to be a part-time freelancer on upwork (previously known as oDesk) from 2008 to 2011 besides my full-time job. Since 2011, I have been developing my own Indie mobile apps which is a great success for me and in my career.

I am still earning very good passive income from my own portfolio apps, today I will discuss why I have started freelancing again.

1. Indie Developing

There is a saying:

If you walk alone you can go faster
If you walk in group you can go further

[Read more]
How To Upload File in Laravel 5.7 Using MySQL

This tutorial help to upload files using Laravel 5.7.We will create html form view that upload file into server and save path information into MySQL table. We will use MySQL and php 7 to create file upload functionality. File Upload Using Laravel 5.7 and Mysql Lets create new laravel application using laravel CLI. The Artisan […]

The post How To Upload File in Laravel 5.7 Using MySQL appeared first on Phpflow.com.

The Symfony Demo Application and MySQL 8

The Symfony Frame work is very popular with PHP developers and it has a very nice Demo Application to help novices learn the intricacies involved. But the demo does not use MySQL. So this blog entry is about re configuring the demo so it works with MySQL 8. And I am using Ubuntu 18.04 LTS to you may have to adjust the following commands to work with your operating system.

This is not difficult but there are some steps that are not exactly self evident that this blog will show you how to get the demo working.  


Preliminaries
The first thing to do is to make sure you have PHP 7.2 or better installed including the php7.2-intl (sudo apt-get install php7.2-intl) package as well as the PDO connector. I will admit I have been using PHP since it appeared and this …

[Read more]
10 Steps to Be a Web Developer with Book Recommendation

Many people want to be web developer. But not many people know how and where to start. In this 10 steps guideline, I discuss how to be a web developer from Zero experience with my recommended books.

I created this guidelines based on my web development experience and recent trends. Personally I read most of the books I recommended here.

1. HTML & CSS

First step of becoming a web developer is to learning the fundamental of HTML and CSS. These are the building blocks of website or web application development. Normally a web developer doesn’t have to be a master of CSS as Web designer do this job. But sometimes for simple modification its way better to fix by oneself than asking the designer.

Recommended Books for HTML and CSS

 Learn to Code HTML and CSS

  …

[Read more]
Showing entries 1 to 10 of 937
10 Older Entries »