home
hardware prices
news
articles
forums
photos
user reviews
Tech Support Forums - TechIMO.com
>
PC Hardware and Tech
>
Webmastering and Programming
making a variable get used with a variable
Ask a Tech Support Question (free)!
User Name
Remember Me?
Password
Register
Blogs
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Search TechIMO for Answers:
making a variable get used with a variable
Get bargains at
»
Thread Tools
Search this Thread
Currently Active Users
: 1538
Discussions: 200,982, Posts: 2,379,845, Members: 246,345
June 13th, 2003, 03:03 PM
#
1
(
permalink
)
DKY
Member
Join Date: Jun 2003
Posts: 34
making a variable get used with a variable
I have this problem, that's REALLY difficult to explain. but it all sums down to this.
I've got
PHP Code:
$text1
=
"blah"
;
$text2
=
'$text1'
;
and I've got
PHP Code:
<?php
echo
$text2
;
?>
and all that shows up on the page is $text1, when I want the text that $text1 is assigned to to show up. How do I do this?
is there a function I'm missing?
Search TechIMO for Answers:
June 13th, 2003, 08:15 PM
#
2
(
permalink
)
Ximensions
Member
Join Date: Mar 2002
Location: England, UK
Posts: 220
Remove the quotes, and it should work - so replace $text2='$text1'; with $text2=$text1;
__________________
Ximensions.com
Ximensions.com Forums
June 14th, 2003, 09:53 AM
#
3
(
permalink
)
DKY
Member
Join Date: Jun 2003
Posts: 34
sweet, thanks
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
Most Active Discussions
Is It Just Me?
(
3063
)
Charges against non-tippers dropped..
(
20
)
Health Care Rationing
(
10
)
Delete an OS
(
16
)
Nvidia GTX 260 problem
(
9
)
Laptop with wireless problem.
(
12
)
Wireless Televisions.
(
12
)
windows vista security holes
(
18
)
CPU fan stops spinning randomly
(
11
)
Regular Build
(
11
)
Point and Shoot Camera Suggestions.
(
7
)
windows 7 problem
(
7
)
Internet Lost
(
5
)
Multiple Restarts Required at Boot
(
5
)
Recent Discussions
updating BIOS via winflash, claims fi..
(
1
)
New Server Configuration Suggestions
(
0
)
Desktop Calendar Application
(
0
)
cheap gaming laptop?
(
12
)
Unallocated Space
(
2
)
help me pls laptop just stopped worki..
(
1
)
C# + LINQ Help
(
7
)
windows vista security holes
(
18
)
[F@H SPAM 11/16/09] ! 1/2 months to r..
(
38
)
Nvidia GTX 260 problem
(
9
)
Dynex DX E-402
(
3
)
EVGA 9800 gtx help with finding a goo..
(
12
)
Multiple Restarts Required at Boot
(
5
)
Point and Shoot Camera Suggestions.
(
7
)
Delete an OS
(
16
)
cell phone won't work
(
0
)
Is the PSU I received dead?
(
15
)
Can't open Word
(
12
)
Steam ID's, Gamertags etc...
(
4
)
Games, Cables, PCI cards, and more fo..
(
6
)
Dept. of HS: NSA 'Helped' Develop Vis..
(
17
)
Linksys WMP54GS wireless card problem..
(
5
)
Help getting around port 80 for camer..
(
5
)
Skillsoft Network+ Study Software Que..
(
10
)
Browsers wont load websites
(
3
)
All times are GMT -4. The time now is
02:52 AM
.
TechIMO Copyright 2009
All Enthusiast, Inc.
Contact Us
-
Tech Support Forums - TechIMO.com
-
Archive
-
Privacy Statement
-
Terms of Use
-
Coupons and Deals and Dealighted
-
Store Ratings, Avoid Scam Businesses
-
Geek News - Tech News for the Geek In You
-
Web Business Blog
-
Top
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28