/    Sign up×
Community /Pin to ProfileBookmark

Quick synthax question

I couldn’t find it anywhere, but I guess I didn’t really know how to search.
I’d like to use a php function inside another function.
Details :
the function gets an argument (text) and renders it as an image. I’d like to have this function get the argument of another function, but I don’t know if it’s possible or how to write it.
Example :
<?php the_function(‘blabla’,true,’someargument’); ?>
This would render Blabla as an image in a font specified elsewhere.
What I’d like to do it replace ‘blabla’ by this function : wp_loginout(); , which would render either Login or Logout, according to what is relevant.
I tried to do <?php the_function(wp_loginout(),true,’someargument’); ?>, but it doesn’t work, it renders “wp_loginout()” instead of login or logout.
Is it even possible to do what I’m trying ? What would be the correct synthax ?
Sorry, I’m always bothering you with quite newbie questions ^^

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@Ness_du_FratauthorJan 28.2008 — Thanks !

Actually, I woke up this night with the sudden thought : "I should create an argument that equals the result of the function I want to be inside the other function"

?

I think I figured out how to do it.?
×

Success!

Help @Ness_du_Frat spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...