Sei sulla pagina 1di 5

Class work

Alejandro Vivas Castro


ADSI 1750512

2. write php script to display the following strings. Goto editor


Sample string

‘tomorrow I’ll learn PHP global variables’ de c\\*,*’


‘this is a bad command
Expected output
Tomorrow I’ll learn PHP global variables
this is a bad command: del c\*,*

click me to see the solution

3. $var = “php tutorial” PUT THIS variable into the section, h3 tag as an anchor text within
an html documrnet. Go to
The editor
Sample output:

PHP Tutorial
PHP, an acronym for Hypertext preprocessor, is a widely-used open source general-
purpuse scripting language, it is a cross platform, html embedded server-side scripting
language and is especially suited for web development

Click me to see the solution


4. created a simple html form and accept the user name and display the name though PHP
echo statemen.
Go to the
Sample output of the html form:
Please imput your name:
Developing

2. escriba el script PHP para mostrar las siguientes cadenas.


Ir a editor
Cadena de muestra
"Mañana aprenderé las variables globales de PHP" de c \\ *, * "
"Este es un mal comando
Rendimiento esperado
Mañana aprenderé las variables globales de PHP
Este es un comando incorrecto: del c \ *, *

Resuelto:

<td>

print "<br> "Mañana aprenderé las variables globales de PHP" de c \\ *, * ";

print "<br> "Este es un mal comando";


print "<br> "Rendimiento esperado";

print "<br> "Mañana aprenderé las variables globales de PHP";

print "<br> "Este es un comando incorrecto: del c \ *, *" ";

print "<br> "print = imprimir <br>


inglés americano..<br>
Dot (.): punto (e-mails y páginas webs).
Comma (,): coma.<br>
Colon (:): dos puntos.<br>
Semicolon (;): punto y coma.<br>
At (@): arroba.<br>
Hash (#): almohadilla.<br>
Asterisk (*): asterisco.<br>
Hyphen (–): guion.<br>
Dash (—): raya.<br>
Underscore (_): guion bajo.<br>
Apostrophe (‘): apóstrofe.<br>
Single quotes (‘ ‘): comillas simples.<br>
Double quotes (» «): comillas dobles.<br>
Forward slash (/): barra.<br>
Backslash (\): barra inversa.<br>
Bar/pipe (|): barra vertical.<br>
Brackets ([ ]): corchetes.<br>
Parentheses (( )): paréntesis.<br>
Curly brackets ({}): llaves.<br>
Ampersand (&): «y» inglesa.<br>
Percent (%): porcentaje.<br>
Question mark (?): símbolo de interrogación.<br>
Exclamation mark (!): símbolo de exclamación.<br>
Plus (+): más.<br>
Minus (–): menos.<br>
Equal sign (=): símbolo de igual que.<br>
Less than / Greater than simbols (<>): símbolos de mayor que y menor que.<br>
UPPER-CASE: mayúsculas.<br>
Lower-case: minúsculas.<br>"
3. $ var = "tutorial de php" pon esta variable en la sección, etiqueta h3 como texto de anclaje dentro de una
documrnet html. Ir
El editor
Salida de muestra:

Tutorial de PHP
PHP, un acrónimo de preprocesador de hipertexto, es un lenguaje de script de código abierto de uso general
de código abierto, es una plataforma multiplataforma, un lenguaje de script del lado del servidor integrado en
HTML y es especialmente adecuado para el desarrollo web

Resuelto:
<!DOCTYPE html>
<html>
<head>
<title>ejercicios Ingles3</title>

<td>

print "<br> "Tutorial de PHP


PHP, un acrónimo de preprocesador de hipertexto,<br>
es un lenguaje de script de código abierto de uso general de código abierto, <br>
es una plataforma multiplataforma, <br>
un lenguaje de script del lado del servidor integrado en HTML y es especialmente adecuado para el desarrollo web";

</td>
</head>
</html>
4. crea un formulario html simple y acepta el nombre de usuario y muestra el nombre a través de PHP echo
statemen.
Ve a la
Salida de muestra del formulario html:
Por favor, escriba su nombre:

Resuelto:
<!DOCTYPE html>
<html>
<head>
<title>ejercicios Ingles</title>
</head>
<body>
<form name = " " action=" " method= "post" >
<table border="1">
<thead>

</thead>
<tbody>
<tr>
<td>Please input your name:</td>
<td>
<input type="number" name="a">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type ="submit" name= "enviar" value="enviar">
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>

Potrebbero piacerti anche