/    Sign up×
Community /Pin to ProfileBookmark

Is there a small work around?

Hi, i have the following code

[code=php]‘.$_SESSION[‘my_array’][8].’s[/code]

The s at the end of the code is being used as follows

mike[COLOR=”Blue”]s[/COLOR] cat
jake[COLOR=”Blue”]s[/COLOR] dog

however i need to change it to

mike[COLOR=”Blue”]‘s[/COLOR] cat
jake[COLOR=”Blue”]‘s[/COLOR] dog

I need to insert a ‘ before the s, however if i do this the PHP presumes it’s part of the PHP code and it throws out an error

‘.$_SESSION[‘my_array’][8].”s (it picks up that there is 2 ‘ )

does anyone know a work around this

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@aj_nscMay 15.2007 — <i>
</i>'.$_SESSION['my_array'][8].''s


note: the doesn't show up when I put it in the php tags which color-code it, even when I make it ...odd eh?
Copy linkTweet thisAlerts:
@oo7mlauthorMay 15.2007 — thanks a million
×

Success!

Help @oo7ml spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...