|
Bas de page | |
---|---|
Auteur | Sujet : Affichage jusqu'à un caractère |
Publicité | Posté le 29-01-2004 à 17:20:09 |
Toucouch | echo ereg_replace('\..*$', '.', $string); |
Ayuget R.oger | tu peux utiliser explode() aussi, je sais pas si c'est très propre, mais je pense que c'est plus léger que ereg_replace (a vrai dire j'en sais trop rien) |
karamilo | echo substr($string, 0, strrpos($string, '.')); |
the real moins moins |
pfiou, heureusement que tu réponds, j'ai eu peur en lisant les 2 autres --------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
simogeo j'ai jamais tué de chats, ... |
Message édité par simogeo le 30-01-2004 à 01:21:47 --------------- from here and there -- \o__________________________________ -- la révolution de la terre, en silence |
Ayuget R.oger |
|
coconutes4 |
|
simogeo j'ai jamais tué de chats, ... | dans la fonction que t'as donnée karamilo, remplace strrpos() par strpos()... ca devrait fonctionner
--------------- from here and there -- \o__________________________________ -- la révolution de la terre, en silence |
coconutes4 | Merci à tous |
Publicité | Posté le 30-01-2004 à 09:59:34 |
Toucouch |
|
simogeo j'ai jamais tué de chats, ... | ué mais les regex c'est lourd --------------- from here and there -- \o__________________________________ -- la révolution de la terre, en silence |
Toucouch |
karamilo | faut pas en abuser non plus !
|
Toucouch |
|
the real moins moins |
c'est simplement une solution trop poussée pour le probleme posé, et ça rend ton code illisible. --------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
the real moins moins |
c'est simplement une solution trop poussée pour le probleme posé, et ça rend ton code illisible. --------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
Taiche (╯°□°)╯︵ ┻━┻ |
--------------- Everyone thinks of changing the world, but no one thinks of changing himself | It is the peculiar quality of a fool to perceive the faults of others and to forget his own | Early clumsiness is not a verdict, it’s an essential ingredient. |
simogeo j'ai jamais tué de chats, ... |
--------------- from here and there -- \o__________________________________ -- la révolution de la terre, en silence |
simogeo j'ai jamais tué de chats, ... |
--------------- from here and there -- \o__________________________________ -- la révolution de la terre, en silence |
Toucouch |
|
Taiche (╯°□°)╯︵ ┻━┻ |
--------------- Everyone thinks of changing the world, but no one thinks of changing himself | It is the peculiar quality of a fool to perceive the faults of others and to forget his own | Early clumsiness is not a verdict, it’s an essential ingredient. |
simogeo j'ai jamais tué de chats, ... |
--------------- from here and there -- \o__________________________________ -- la révolution de la terre, en silence |
Toucouch |
|
Toucouch |
|
Taiche (╯°□°)╯︵ ┻━┻ |
--------------- Everyone thinks of changing the world, but no one thinks of changing himself | It is the peculiar quality of a fool to perceive the faults of others and to forget his own | Early clumsiness is not a verdict, it’s an essential ingredient. |
Publicité | Posté le |
Sujets relatifs | |
---|---|
PROBLEME AFFICHAGE D IP | type de caractère en c |
[CSS] Bug affichage cadre aux coins arrondis | Problème d'affichage d'une variable |
(Débutant) taille tableau caractère | [php] Patern, remplacer dans une chaine de caractère |
[Pascal] Demande 2 fois le caractère sinon ca plante. (ouf Résolu) | Comment passer d'un code caractère numérique comme "é" à "é" |
[SH] Contenu variable different de l'affichage | Problème d'affichage d'un caractère à l'écran |
Plus de sujets relatifs à : Affichage jusqu'à un caractère |