Blogger Information
Blog 2
fans 0
comment 0
visits 2236
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
8月21日作业
艾菜菜的博客
Original
1651 people have browsed it

今天是8月21号的作业,也就是我参加培训的做的第一次作业,前面的后面在补上,有什么不对的请老师指点,谢谢

编程作业2

编程: 实例演示php中的字符串中的变量解析,特殊字符转义,以及heredoc和 nowdoc语法结构的用法

实例

<?php
$money = '95亿美元';
$name = 'zhouqi';
$xinwie ='欣慰';
$title = '阿里云'.$money.'收购了饿了么';
$title1 = "{$name}带领中国红队亚运会夺冠";
$title2 ='我要成为未带的'.$xinwie.'\'工\\程\\师\'';
echo $title, '<br/>',$title1, '<br/>',$title2,'<br/>';
echo '<hr/>';
echo "$title1",'<br>';
echo <<< HEREDOC
{$title2} \n  \r  \t
HEREDOC;
echo '<hr/>';
echo <<< NOWDOC
<h2><a href="">热烈庆祝我校成立五十周年</a></h2>
NOWDOC;
?>

运行实例 »

点击 "运行实例" 按钮查看在线实例

手写作业:

  1. 手写: 变量的命名规则;

  2. 手写: Web服务器访问原理;

  3. 手写: 创建本地虚拟主机的过程(以你的工具为准)

    70129519976507572.jpg



Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post