Skip to content

PHP codes and news

Open Menu
April 20, 2012

Utilisation de var_dump()” pour afficher les informations sur le type d’une variable”

<?php
$welcom = "Bienvenur";
// Affiche: string(9) "Bienvenur"
var_dump( $welcom );
?>

April 19, 2012

Calcul de l’arc sinus avec la fonction ‘asin()’

		 <html>
		 <head>
		 <title> Fonction Math 'asin()'</title>
		 </head>
		 <body>
		 <table>
		 <t
user
April 19, 2012

PHP: Gérer un formulaire multipage


<?php

  /*
  Pour tester, créer chaque page dans un fichier different

  */

?>
<html>
<body>
<di
April 18, 2012

Afficher les informations sur le client ‘MySQL’

<html>
<head>
<title>Base de données</title>
</head>
<body>

<?php
   mysql_connect("localhost","ro
user
April 18, 2012

Exemple d’utilisation de la fonction ‘rand()’

<html>
<head>
<title> Fonction Mathématique</title>
</head>
<body>

<?php
print rand(0,576);

?>

 <
user
April 17, 2012

Calcul de cosinus avec la fonction prédéfinie

<html>
<head>
<title> Fonction Mathématique</title>
</head>
<body>
<?php
    $cos1 = cos(10);
    ec
user
April 17, 2012

Syntaxe de création des copies d’un fichier


<?
   // Syntaxe de copie d''un fichier
    $mon_fichier = "users.txt";
    copy($mon_fichier, $mo
user
April 16, 2012

PHP: Utilisation de string comme paramètre d’une requête

<html>
<head>
<title>Navigation entre les Pages</title>
</head>
<body>
  <div align="center">
    <
April 15, 2012

Exécute une chaîne comme un script PHP

<?php

$chaine= '$a= 10; $b=20; $c=$a+$b;print $c;';
print "Exécuter comme une chaîne simple: ".$cha
user
April 14, 2012

déterminer si un objet est une instance d’une classe déterminée

<?php
class Voitures
{

    function __construct($marque,$model)
    {
    }
}


$bmw = new Voiture
user

Posts navigation

Older posts
Newer posts

Recent Posts

  • Hello world!
  • PHP Session et Cookies: Exemple d’utilisation de session_start()
  • PHP: Fermer un fichier avec la fonction fclosde()
  • PHP: Vérifier si un élément est un répertoire
  • PHP: Vérifier si un fichier existe sinon le créer

Recent Comments

  1. A WordPress Commenter on Hello world!
© 2025 PHP codes and news
 / Theme: Really Simple / License: GPLv3