Jump to content

String manipulation


urtlking2jo

Recommended Posts

I am trying to figure out the easiest way to change a string with a concatenated suffix back to the original string.

I add the suffix "_mil" to all account names created from a particular log in form.  For query/storage purposes, I want that suffix included (example: name_mil), but for display purposes, I only want the original user name (example: name).  I only display it in one place, so I don't want to pass it as a session variable to every page.

Can anyone help me with the code it would take to "shorten" the user names back to what the user "thinks" their user name is?  Thanks!
Link to comment
https://forums.phpfreaks.com/topic/34665-string-manipulation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.