Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,255
Total Threads: 81,172
Total Posts: 566,863
There are 32 users currently browsing (tf).
  Our Partners:
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

How could I merge these three functions?

Thread title: How could I merge these three functions?
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
06-04-2012, 10:09 PM
Dan is offline Dan
Dan's Avatar
Status: Request a custom title
Join date: Feb 2005
Posts: 3,164
iTrader: 15 / 86%

Dan is an unknown quantity at this point

  Old  How could I merge these three functions?

Self explanatory.

PHP Code:
function username($user) {
$user == null)

userURL($user) {
$user == null)

userlink($user) {
$user == null)
"<a href=/user/".strtolower($user).">$user</a>";

I don't see the need for three different functions when I could probably merge these into one. Though I'm not particularly sure how. If someone could point me in the right direction that would be swell.


Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed