Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8066773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:06:18+00:00 2026-06-05T12:06:18+00:00

Could it be that I’m missing something very obvious here? How is it that

  • 0

Could it be that I’m missing something very obvious here?

How is it that print ucwords(strtolower($keycode)) . " Preview Page" only returns the $keycode as title, but not the trailing ” Preview Page” that’s supposed to be there too?

<?php
$title = ((isset($keycode)) ? print ucwords(strtolower($keycode)) . " Preview Page" : print "Home Page"); ?>

<title><?php echo $title; ?></title>

I’ve even tried print ucwords(strtolower($keycode . ' Preview Page')) just to work it in there, but that didn’t change anything. It only seems to see the variable…

Does anybody know how to get this to work? :o) Help please? Thank you for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:06:19+00:00Added an answer on June 5, 2026 at 12:06 pm

    the problem is that you are echoing the result of a call to print which is just an int I think… Anyway, print and echo both have the effect of outputting the string. You just need to lose the prints so:

    $title = ((isset($keycode)) ? ucwords(strtolower($keycode)) . " Preview Page" : "Home Page"); ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This seems like something that could be quite useful and yet and I can't
I would like the height*width of a remote image. Could that be done with
I could understood that Desktop applications in Java doesn't have a pre-defined relative path
I need a function that could generate a regex. For example if I write
What UI mockup tools exist that could be used to produce designs that look
I have a paginated collection that could be simultaneously making multiple fetch()es. E.G. a
Is there any Javascript library that could force an HTML node (mostly images and
I have a view that could be called from any of 3 actions from
Does anyone have any tips that could help speed up a process of breaking
Are there any security exploits that could occur in this scenario: eval(repr(unsanitized_user_input), {__builtins__: None},

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.