Changeset 30253 in spip-zone for _plugins_/jeux/jeux/mots_croises.php


Ignore:
Timestamp:
Jul 27, 2009, 3:26:42 AM (12 years ago)
Author:
gilles.vincent@…
Message:

[30252] suite : split est deprecie en 5.3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/jeux/jeux/mots_croises.php

    r26427 r30253  
    118118function calcul_tableau_grille($texte){
    119119        $texte = preg_replace(",\s?[\r\n]+\s?,", "\n", trim($texte));
    120         $tableau = split("\n", $texte);
     120        $tableau = preg_split("/\n/", $texte); 
    121121        foreach ($tableau as $i=>$valeur) $tableau[$i] = preg_split('//', trim($valeur), -1, PREG_SPLIT_NO_EMPTY);
    122122        return $tableau;
Note: See TracChangeset for help on using the changeset viewer.