Table of Contents
从零开始PHP学习,从零开始php
一、第一个命令echo
Home php教程 php手册 从零开始PHP学习,从零开始php

从零开始PHP学习,从零开始php

Jun 13, 2016 am 09:05 AM
start from scratch

从零开始PHP学习,从零开始php

<p>写这个系列文章主要是为了督促自己  每天定时 定量消化一些知识!</p>
<p>同时也为了让需要的人 学到点啥~!</p>
<p>本人技术实在不高!本文中可能会有错误!希望大家发现后能提醒一下我和大家!</p>
<p>偷偷说下 本教程最后的目标是实现一个PHP的框架(虽然对我来说也许很遥远!~)</p>
Copy after login

昨天我们搭建了一个虚拟主机 并且成功运行了起来

今天我就要在这个虚拟主机中进行编写程序

上次建的虚拟主机 在目录 upupw/vhosts/www.test.local (后面www.test.loacl 为你上节课搭建的虚拟主机的域名)

我们先用PHPstrom打开我们的 upupw/vhosts/www.test.local

首先选择打开目录

然后就打开了这个项目

新建一个PHP文件 我们管他叫 lesson1.php (翻译lesson:课、课程)

单击之后

创建好了之后 单击文件会进入这个文件的编辑模式

一、第一个命令echo

  echo是PHP中的输出语句,可以把字符串输出 字符串用引号括起来

  例如

<?php
echo 'hello world';
Copy after login

  这样页面就会 输出一个hello world 

  不信? 试试看?

  

注意 PHP 每个命令后面都要加";" 千万别忘了 !~

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Zero-based learning of C language: effective learning strategies revealed Zero-based learning of C language: effective learning strategies revealed Feb 24, 2024 pm 06:21 PM

Learn C language from scratch: Revealing the secrets of practical learning methods As a common programming language, C language plays an important role in the field of computer science. Learning C language well can not only open the door to programming for you, but also improve your competitiveness in the field of software development. However, for beginners, mastering the C language may face some challenges. This article will reveal some practical learning methods to help you learn C language from scratch and lay a solid foundation for programming. Combining Theory and Practice The most important point in learning C language is to keep theory and practice combined.

Starting from scratch: Mastering installing Python libraries using pip Starting from scratch: Mastering installing Python libraries using pip Jan 04, 2024 pm 03:59 PM

Starting from scratch: Learn to use pip to install Python packages. Specific code examples are required. Introduction: Python is a popular programming language with a wealth of third-party libraries and packages. In order to better develop and use Python, it is an important step to learn to use pip to install Python packages. This article will start from scratch, detail how to use pip to install Python packages, and provide specific code examples. 1. What is pip? pip is a package management tool for Python.

Python pip installation guide on Mac: starting from scratch Python pip installation guide on Mac: starting from scratch Jan 17, 2024 am 10:46 AM

Starting from Scratch: Installing Pythonpip on Mac, Specific Code Examples Needed Installing Pythonpip on Mac is one of the necessary steps for Python development. pip is a Python installation package management tool that can help us easily install, upgrade and uninstall third-party Python libraries. This article will introduce you to the steps and code examples for installing Pythonpip on Mac. Step 1: Install Python There are various ways to install Python on Mac,

Starting from scratch: How to install the django framework using commands Starting from scratch: How to install the django framework using commands Jan 19, 2024 am 08:30 AM

Starting from scratch: How to install the Django framework using commands Django is a popular Python web framework that provides developers with a convenient and fast way to build high-quality web applications. Before we start using Django, we first need to install the framework in our development environment. This article will provide detailed steps and specific code examples to help you easily start installing the Django framework using commands. Step 1: Install Python and PIP before installing Django

Java development experience sharing from scratch: building an online education system Java development experience sharing from scratch: building an online education system Nov 20, 2023 am 11:35 AM

In today's era of rapid technological development, learning to program has become an essential skill. As one of the most popular programming languages ​​at present, Java has wide applications and deep market demand among many programming languages. Therefore, in this article, I will share my experience of learning Java from scratch and building an online education system, hoping to provide some reference and help for everyone. 1. Understand the basic knowledge of Java. Before starting to learn Java, we need to master some basic knowledge, such as Java syntax.

Pip3 installation tutorial: start from scratch, guide you step by step installation Pip3 installation tutorial: start from scratch, guide you step by step installation Jan 18, 2024 am 08:50 AM

As a Python package manager, pip3 allows you to easily install various third-party libraries and frameworks, making Python programming more convenient. But if you are not clear about the installation steps of pip3, it may cause some problems that are difficult to solve. Therefore, in this article, we will explain the pip3 installation tutorial in detail from scratch and provide specific code examples so that you can easily master the pip3 installation method. Installing Python3 Before installing pip3, you need to install Python3 first. if you

Starting from Scratch: Deployment Guide for Flask Applications Starting from Scratch: Deployment Guide for Flask Applications Jan 19, 2024 am 10:13 AM

Starting from Scratch: Deployment Guide for Flask Applications Introduction: In today’s Internet era, web applications have become an indispensable part of our daily life and work. For developers, how to deploy the applications they develop so that they can run on the Internet and provide services is a problem that must be faced and solved. This article will use Flask as an example to introduce in detail how to deploy a Flask application from scratch. Step One: Preparation Before we start deploying the Flask application, we need to

An introductory guide to learning Go language web development An introductory guide to learning Go language web development Jan 30, 2024 am 10:29 AM

To learn Go language web development from scratch, you need specific code examples. Preface: Go language is an open source programming language, developed by Google and first released in 2009. It has gained high attention for its efficient execution speed and concurrency, and is loved by more and more developers. In the field of web development, Go language also has powerful capabilities, concise syntax and rich standard library, making it an ideal choice. This article will help you learn Go language web development from scratch and let you understand how to use Go

See all articles