hi I need some help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gpong
Forum Newbie
Posts: 16
Joined: Sun Aug 06, 2006 8:49 am

hi I need some help

Post by gpong »

I have tables name ex:
CHT_BusinessTYP
CHT_COMINT
CHT_COMINTTYP
CHT_CUSIFO
CHT_CUSIFOTYP
CHT_DOCGRP
i want to get the last three character ex:CHT_CUSIFOTYP ===>"TYP"
what should I do?
thank you very much :P
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Descriptive Subjects

Post by feyd »

[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.

Are these names stored in PHP ... or somewhere else?

substr() in php.
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

Code: Select all

substr($variable_thing, -3);
gpong
Forum Newbie
Posts: 16
Joined: Sun Aug 06, 2006 8:49 am

thanks

Post by gpong »

thank you its work :D
Post Reply