Jump to content

uppercase to lowercase vice versa


homer.favenir

how can i make my string "MC*GILL U-QUEBEC, CANADA '91" to "McGILL U-QUEBEC, CANADA '91"  

1 member has voted

  1. 1. how can i make my string "MC*GILL U-QUEBEC, CANADA '91" to "McGILL U-QUEBEC, CANADA '91"

    • regex
      1
    • UC, LC
      0


Recommended Posts

hi,

can anyone please help me on how to make a string with asterisk as marker from uppercase to lowercase.

 

$string1 = MC*GILL U-QUEBEC, CANADA '91 ;

$string2 = U*C SAN FRANCISCO-C*A '94;

$string3 = U *OF ILLINOIS-CHICAGO '71;

 

//expected output of each variables

McGill U-Quebec, Canada '91;

UC San Francisco-CA '94;

U of Illinois-Chicago '71;

 

please

 

thanks

 

 

 

Link to comment
Share on other sites

i have problem with uppercase

$x = '23ABARQUEZ-AGCAOILI, CARMENCITA  IM  CCM PUD           U *OF *THE EAST-PHILIPPINES \'80';
echo ucfirst(strtolower($x));

it returns to lower still. it didnt change to uppercase first.

 

please advice.

 

thanks

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.