This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-Type: charset=utf-8'); | |
?> | |
<!doctype html> | |
<html lang="ru"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<link rel="stylesheet" href="style.css" /> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$n0000 = ['{id:A0}','COGTO - CLASIFICADOR OBJETO DEL GASTO',null,null]; | |
$n0001 = ['{id:A1}','10000 - SERVICIOS PERSONALES', null, null]; | |
$n0011 = ['{id:A11}','11000 - REMUNERACIONES AL PERSONAL DE TRABAJO PERMANENTE',null, null]; | |
$n0111 = ['{id:A111}','11100 - DIETAS', null, null, '{format:{expanded:true}']; | |
$n1111 = ['{id:A1111}', '11101 - DIETAS', 'https://www.google.com', 'mainFrame']; | |
$n1112 = ['{id:A1112}', 'Level 3, Item 2', 'https://www.fast.com', null]; | |
$arrFin = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$N01 = ["Nivel 01",null,null]; | |
$N02 = ["Nivel 02",null,null]; | |
$N03 = ["Nivel 03",null,null]; | |
$N04 = ["Nivel 04",null,null]; | |
$A2 = array_merge($N01,[$N02]); | |
$A3 = array_merge($A2,[$N03]); | |
$A4 = array_merge($A3,[$N04]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include("header.php"); | |
include("db.php"); | |
include("function.php"); | |
?> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mitarbeiter = ["Bob","Peter","Lisa"]; | |
function ersetzen($array, $wert, $wert_neu) { | |
if(in_array($wert,$array)) { | |
$index = array_search($wert, $array); | |
$array[$index] = $wert_neu; | |
echo "Der Wert $wert an der Stelle / mit dem Index $index ist in dem Array enthalten und wurde mit $wert_neu ersetzt";} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ua = $_SERVER['HTTP_USER_AGENT']; | |
echo $ua; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$service = array("Hulu", "Amazon Prime", "Netflix", "Disney+", "Showtime"); | |
$genre = array("Romance", "Reality", "Drama", "Comedy", "Action", "Science Fiction", "Documentary"); | |
$type = array("Movie", "TV"); | |
$number = array("1st", "2nd","3rd", "4th", "5th", "6th"); | |
$randService = array_rand($service); | |
$randGenre = array_rand($genre); | |
$randType = array_rand($type); | |
$randNumber = array_rand($number); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>PHP Date string from a HTML Form validation</title> | |
</head> | |
<body> | |
<?php | |
// define variables and set to empty values | |
$birthdate = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
label { | |
float:left; | |
display:block; | |
width:250px; | |
} | |
input{ | |
display:block; | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
label { | |
float:left; | |
display:block; | |
width:250px; | |
} | |
input{ | |
display:block; | |
} | |
</style> |