This is a discussion on Can I get a variable name as a string? within the PHP Programming forums, part of the Web Development category; I've searching in php and perl for this: how do i get a variable name as a string e....
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| I've searching in php and perl for this: how do i get a variable name as a string e.g i have a variable myvar:1 2 5 3 2 6 7 8 i want to get "myvar" Is there any function to get the name of a variable based on its value? |
| Sponsored Links |
| |||
| Hi In PHP no built in function for this issue, but we can create a User defined function for this issue PHP Code: PHP Code: |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/php-programming/284-can-i-get-variable-name-string.html | |||
| Posted By | For | Type | Date |
| DiscussWeb IT Community - Fusing | This thread | Refback | 08-02-2007 03:25 AM |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is diffrenece between string.compare and string.compareordinal | shaalini | ASP and ASP.NET Programming | 3 | 12-28-2007 10:46 PM |
| how to pass and retrieve variable(query string) in same page using ajax? | ursklakshmanan | PHP Programming | 0 | 09-17-2007 12:05 PM |
| Getting substring of the string variable in silk test | senthilkannan | Testing Tools | 0 | 07-30-2007 03:37 AM |
| How to split a string by using a string usually in the c# dotnet... | Archer | C# Programming | 1 | 07-25-2007 03:26 AM |
| Static Global Variable and Static Local Variable | vigneshgets | C and C++ Programming | 1 | 05-30-2007 11:50 AM |