0

Hello,
I have a string

$string="- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall] -
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall] For
both cases,look for a value named “InstallLocation” containing the
string “\Hewlett-Packard\\”, either delete or clear this value and";

and i wrote function fro wrapping it as:
`

$test=wordwrap($string,"80","<br>"); echo $test;

`
but it did not gave me output which i was expecting.
it considered the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall as one word.
How can i solve this one?

by using regexp?
or is there other parameters for this in wordwrap whcih i am missing?

3
Contributors
3
Replies
12
Views
3 Years
Discussion Span
Last Post by Priti_P
0

or is there other parameters for this in wordwrap which i am missing?

The php manual is your friend. A quick check would have saved you a lot of time methinks.

0

Thats my bad habit :(
I will keep this in mind from next time :)

Thanksss a lot :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.