•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,818 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,619 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 459 | Replies: 8 | Solved
is there a way to create a function that uses values from the statement inside of brackets.
ex.
if not, what i am trying to do is get a html tag and check/modify without having it inside of a variable or echo tag.
for example, i want to do the equivilent of this:
i do not want to use javascript for this although it would be easier.
thanks!
ex.
php Syntax (Toggle Plain Text)
myFunction(){ //data here }
if not, what i am trying to do is get a html tag and check/modify without having it inside of a variable or echo tag.
for example, i want to do the equivilent of this:
php Syntax (Toggle Plain Text)
<?php $data ={ ?> test <?php } myFunction($test); ?>
i do not want to use javascript for this although it would be easier.
thanks!
toast
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- QBASIC and Visual Basic (Legacy and Other Languages)
- User defined functions (C++)
- User-Defined Function - part 2 (C++)
- @@ ListFuns.c @@ (C)
- Create Windows Authentication (VB.NET)
Other Threads in the PHP Forum
- Previous Thread: send email Undefined variable:
- Next Thread: function in php



Threaded Mode