6 résultats trouvés
- par techietim
- 11 juil. 2010, 01:35
- Forum : PHP orienté Objet
- Sujet : Appeler deux méthodes dans un même appel
- Réponses : 3
- Vues : 1730
Vous avez besoin de fonction retourner $this . Exemple: class Exemple { public function method1() { // return $this; } public function method2() { // return $this; } } $obj = new Exemple(); $obj->method1()->method2()->method2()->method1();
- par techietim
- 11 juil. 2010, 01:29
- Forum : PHP débutant
- Sujet : mettre du html et du php dans une BDD sql ?
- Réponses : 3
- Vues : 697
Vous avez oublié le "
echo"
blablabla en html. Votre mot de passe : <strong><?php echo $password; ?></strong><br/><p>blablabla...
- par techietim
- 22 juin 2010, 14:01
- Forum : PHP débutant
- Sujet : array_map dans un objet
- Réponses : 1
- Vues : 548
Vous devez changer la première variable de la fonction
$data = array_map(array($this, 'removeNewLines'), $data);
- par techietim
- 07 juil. 2009, 15:16
- Forum : PHP débutant
- Sujet : Parser un fichier texte
- Réponses : 4
- Vues : 907
ce bon? <?php function fi($ligne){ return substr($ligne, 0, 1) != '#'; } $informations = file('http://astronomie89.free.fr/statIC.txt', FILE_IGNORE_NEW_LINES); $informations = array_filter($informations, 'fi'); $nouveau = array(); foreach($informations as $ligue){ $actuel = explode('=', $ligue); $no...
- par techietim
- 04 juin 2009, 02:22
- Forum : PHP avancé
- Sujet : Aide sur un regex pour une exception
- Réponses : 1
- Vues : 749
$mot = 'chien';
if(preg_match('/[^^alphabet$]/', $mot)){
echo 'bon!';
}
- par techietim
- 31 mai 2009, 21:49
- Forum : PHP débutant
- Sujet : niveau de typage
- Réponses : 3
- Vues : 766
Aller à C:\wamp\bin\apache\Apache2.2.11\bin et ouvert php.ini. Rechercher la ligne avec error_reporting = E_ALL et remplacer ce avec error_reporting = E_ALL & ~E_NOTICE
Nous sommes le 05 juin 2026, 12:02