aldolat + php   29

How to Sort Arrays in PHP
In this tutorial, we will learn how to use built-in PHP functions to sort different kinds of array.
PHP  array  sort  webdev  code 
5 weeks ago by aldolat
PHP Integers, Floats and Number Strings
Working with numbers in PHP seems to be a trivial concept, but it can be quite confusing. It looks easy at first because PHP provides automatic type conversion. For example, you can assign an integer value to a variable, and the type of that variable will be an integer. On the next line, you can assign a string to the same variable, and the type will change to a string. Unfortunately, this automatic conversion can sometimes break your code. There are a lot of types for numeric values as well. In this tutorial, you'll learn about integers and floats in PHP, as well as the functions which can be used to determine the type of numbers that we are dealing with and convert between them. You'll also learn how to convert integers and floats to and from numerical strings.
PHP  webdev  code  numbers 
10 weeks ago by aldolat
PHP Control Structures and Loops: if, else, for, foreach, while, and More
Today, we're going to discuss control structures and loops in PHP. I'll show you how to use all the main control structures that are supported in PHP, like if, else, for, foreach, while, and more.
webdev  code  php  development 
11 weeks ago by aldolat
Formatting the Current Date and Time in PHP
You'll often want to work with dates and times when developing websites. For example, you might need to show the last modified date on a post or mention how long ago a reader wrote some comment. You might also have to show a countdown of the days until a special event. Luckily, PHP comes with some built-in date and time functions which will help us do all that and much more quite easily. This tutorial will teach you how to format the current date and time in PHP. You will also learn how to get the timestamp from a date string and how to add and subtract different dates.
webdev  PHP  programming  code 
september 2018 by aldolat
WordPress: perché usare l’approccio OOP | Gabriele Romanato
In questo articolo introdurremo alcuni dei concetti chiave per programmare in modo object-oriented in WordPress. Un requisito necessario è la conoscenza dell’OOP in PHP oltre che la conoscenza di base del funzionamento di WordPress.
WordPress  PHP  OOP 
december 2016 by aldolat
Create WordPress Plugins with OOP Techniques | Nettuts+
Object-oriented code, among other things, can help organize and add reusability to your code. In this tutorial, I will teach you the basics of writing a…
OOP  PHP  development  from instapaper
december 2016 by aldolat
Understanding The Concept Of Visibility In Object Oriented PHP
I’ve been writing a lot recently about principles of object-oriented programming (OOP) in PHP, including magic methods . OOP is great in that it promotes…
OOP  PHP  development  from instapaper
may 2016 by aldolat
An Introduction to Object-Oriented Code for WordPress Plugins - WPMU DEV
Daniel Pataki Last updated April 10, 2016 #code #object oriented programming Object-oriented programming can be difficult to wrap your head around but is…
development  PHP  OOP  from instapaper
april 2016 by aldolat
Create WordPress Plugins with OOP Techniques - Tuts Code Article
In this tutorial, I will teach you the basics of writing a WordPress plugin using object oriented techniques.
oop  wordpress  php  webdev  letture 
december 2014 by aldolat
Object-Oriented Programming in WordPress: An Introduction - Tuts Code Tutorial
This series is going to focus solely on those who are wanting to learn to build more complex solutions with WordPress. You may be someone who is comfortable with building themes and/or simple plugins, but are looking to advance your skill set by learning object-oriented programming.
php  wordpress  oop  webdev  letture 
august 2014 by aldolat
Huge Collection of Code Snippets: HTAccess, PHP, WordPress, jQuery, HTML, CSS | Perishable Press
Whenever I update this site, I place any removed/unused code snippets into a giant note file for future reference, just in case. There’s all sorts of different types of code and snippets that just keep growing and growing and.. and finally it gets to a point where I just need to dump everything and start fresh. That is the purpose of this post.
snippets  htaccess  php  wordpress  jquery  html  css  htaccess 
september 2011 by aldolat
How to Create an Advanced Twitter Widget | Nettuts+
As of March 2011, the current average number of “Tweets” the world sends per day is 140 million. This tutorial demonstrates how to create a custom Twitter widget from scratch that uses the Twitter API, Web Intents and @Anywhere. Using the Twitter platform to create a fun, interactive tool for your website can be beneficial both in the learning and promotion departments!
twitter  widgets  php  jquery  javascript 
august 2011 by aldolat
BigDump: Staggered MySQL Dump Importer
Staggered import of large and very large MySQL Dumps (like phpMyAdmin 2.x dumps) even through the web servers with hard runtime limit and those in safe mode. The script executes only a small part of the huge dump and restarts itself. The next session starts where the last was stopped.
mysql  database  import  php 
may 2011 by aldolat
PHP Code Review | Gianni Amato
Finchè si tratta di esaminare il codice sorgente poche pagine il problema non sussiste ma quando ci si ritrova a lavorare su un centinaio di pagine, di cui alcune contengono migliaia di righe di codice, il lavoro comincia a complicarsi.
security  php  grep  xss  execution  disclorure  inclusion 
may 2011 by aldolat
Sanitize Database Inputs
Function for stripping out malicious bits.
php  html  javascript  database  security  xss 
november 2010 by aldolat
PHP snippets to interact with Twitter -
Twitter is an awesome tool for website owners, and you should definitely integrate it into your website if you want to attract more traffic and new visitors. Today, let’s take a look at some PHP snippets to interact with Twitter.
twitter  php  snippets 
november 2010 by aldolat
PHP Variables: The Ultimate Guide
Variables are important in every programming language — and it’s no different in PHP. Variables give developers the possibility of temporarily storing data to be used in PHP scripts (in PHP’s case, this happens in the server’s memory). This guide is all about working with variables in PHP.
php  variables 
september 2010 by aldolat
Passing parameters from PHP to Javascripts in plugins » Otto on WordPress
A while back, I wrote a post detailing why it was a bad idea to generate Javascripts using PHP in WordPress plugins. In that post, I mentioned a couple of better ways to do it.
At the time, I didn’t know about the third, and best way, to accomplish this. Mike’s comment over there reminded me of it. WordPress has it built in.
If you already know about wp_localize_script, you can stop reading now.
wordpress  php  javascript 
august 2010 by aldolat
An Introduction to Cookies | Nettuts+
You might have heard about cookies, but what exactly are they and what can we actually do with them? In this tutorial, we will focus on the basics of cookies, and learn about their functionality in various web application and site environments. We will also learn how to use them within our PHP and JavaScript projects, while paying particular attention to security issues that might arise when using them. After reading this, you’ll have acquired the necessary skill set to implement cookies safely into your own web applications.
cookies  php  javascript  tutorials 
june 2010 by aldolat
9 Useful PHP Functions and Features You Need to Know | Nettuts+
Even after using PHP for years, we stumble upon functions and features that we did not know about. Some of these can be very useful, yet underused. Not all of us have read the manual and the function reference from cover to cover!
php  functions 
april 2010 by aldolat

Copy this bookmark: