|
Bas de page | |
---|---|
Auteur | Sujet : array_filter + transmission de variable dans une fonction callback |
![]() Publicité | Posté le 12-06-2006 à 10:59:01 ![]() ![]() |
masklinn í dag viðrar vel til loftárása | Dans d'autres langages tu utiliserait des closures, mais PHP n'ayant pas de notion de closures (ni de fonctions en tant que first-class objects, et toutes ses fonctions étant globales de toute façon) tu n'as --je pense -- d'autre choix que d'utiliser une variable globale que tu set avant chaque array_filter Message édité par masklinn le 12-06-2006 à 11:47:00 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Hermes le Messager Breton Quiétiste | Merci d'avoir prêter attention à la question déjà. Message cité 1 fois Message édité par Hermes le Messager le 12-06-2006 à 11:47:05 |
Hermes le Messager Breton Quiétiste |
|
masklinn í dag viðrar vel til loftárása |
Message cité 1 fois Message édité par masklinn le 12-06-2006 à 12:03:18 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
zapan666 Tout est relatif |
Message édité par zapan666 le 12-06-2006 à 12:04:49 --------------- my flick r - Just Tab it ! |
masklinn í dag viðrar vel til loftárása | [controverse]L'autre solution ce serait d'utiliser un vrai langage --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Hermes le Messager Breton Quiétiste |
|
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 12-06-2006 à 12:58:13 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Hermes le Messager Breton Quiétiste | Un grand merci à toi Masklinn, ça marche nikel. Message édité par Hermes le Messager le 12-06-2006 à 16:10:08 |
![]() Publicité | Posté le 12-06-2006 à 16:09:52 ![]() ![]() |
weed | J'ai a peu près le meme soucis que Hermes à l'exception que j'aimerais bien :
|
Paulp ~, sweet ~ | Sinon, ça doit être possible avec create_function http://www.php.net/manual/fr/funct [...] nction.php
|
Paulp ~, sweet ~ | http://www.php.net/manual/fr/function.array-walk.php
|
weed |
|
Paulp ~, sweet ~ | oui, ou bien utiliser $machine->memory qui est, a priori, une valeur numerique donc convertissable en string directement
Message édité par Paulp le 30-06-2010 à 16:48:53 |
weed | oui tu as raison, cela peut etre une solution. Je vais tester cela au taff ta 2ème solution par curiosité. |
Dj YeLL $question = $to_be || !$to_be; |
Edit : erf, je viens seulement de voir la date du 1er message -__- (m'enfin, ça pourra peut être servir à d'autres) Message édité par Dj YeLL le 06-07-2010 à 10:36:12 --------------- Gamertag: CoteBlack YeLL |
Sujets relatifs | |
---|---|
Mysql -> Fonction IN (1,2,3) AND et pas OR | Pb variable bool |
fonction Lookup plante GDB sous DDD | [JavaScript] Récupérer une variable serveur |
fonction somme avec des variables | Fonction JS dans formulaire html |
[Résolu] Générer une variable | Fonction mail avec un if else tout bête et javascript confirm() |
variable php sql | Fichier .txt => Tableau Array() ? |
Plus de sujets relatifs à : array_filter + transmission de variable dans une fonction callback |