In this tutorial I will try to teach you about the basic uses of closures (aka anonymous functions) in PHP. You will learn how closures are used as callback functions and how they can inherit variables from the parent scope.
Closures have been introduced in PHP 5.3 and their most important use is for callback functions. Basically a closure in PHP is a function that can be created without a specified name - an anonymous function. Here's a closure function created as the second parameter of
array_walk(). By specifying the
$v parameter as a reference one can modify each value in the original array through the closure function.
In today's tutorial I will show you how to use Bash aliases to create 'shortcuts' to your ssh connections to remote servers on Ubuntu 14.04. This will save you a lot of typing and remembering which private key is used for which server.
All you need to do that is to type a few simple commands, so open up your terminal and follow the steps below. I also made a video so you can just watch the screen-cast at the bottom of the article.Read Full Article...
In my last tutorial on HTML for beginners, you've learned how to create a web page that contained an image and a title. The goal for today is to go one step further and create an actual design for our HTML web page.
You will learn what HTML5 tags you should use for the various sections of a web page and also how to apply CSS styling to change the appearance of your page.
Continue to the article to see how the page will look like once you've finished this step by step guide.Read Full Article...
The goal of this tutorial is to teach you how to create your first web page. It will be very simple. The resulting web page will consist of a title (ex: "My First Web Page"), and an image containing The CodePunker logo.
You're reading this tutorial so it's safe to assume that you already have one of the needed tools to create your first web page - a web browser. Even if you probably already know this it's worth mentioning that browsers are applications used to connect to the Internet and display web pages by interpreting the HTML tags in the source code and displaying human readable content. Of course, browsers do a lot more than that but for now that's all you need to know.
Another tool that you need is a plain text editor. There are many choices out there and some are really complex. However, for the purpose of this tutorial, all you need is Notepad in Windows or an equivalent for Mac.Read Full Article...
Can't remember your password ?
Reset it using the form below:
Fill the form below to create
an account with codepunker.com