DEV Community

Return statement in PHP

Programming Dive on July 18, 2020

The return statement is an important language constraint to return the value to the caller. In this tutorial, we’ll see different uses of return st...
Collapse
 
moopet profile image
Ben Sinclair

Hi, I notice your posts are generally teasers with links to off-site content. If you include the whole post here, people here will have a better DEV experience - and you can set the canonical url in each post to reference your site, so you don't end up with SEO woes.

Collapse
 
programmingdive profile image
Programming Dive

Hi Ben , thanks for the suggestion
I am actually afraid whether google will penalize my website because duplicate content. If this does not happen then I love to share my whole work here and as you said I will give canonical url to my webpage

Collapse
 
marcusatlocalhost profile image
Marcus

Stand up to your fears, there is nothing to be afraid of ;-) and according to this article[1], "duplicate content penalty" doesn't exist. You try to game google, which could end up to be more harmful.

[1] hobo-web.co.uk/duplicate-content-p...

Thread Thread
 
programmingdive profile image
Programming Dive

Thanks for the clarification Marcus.. here is the question.i posted my blog first and then provided that content here but still I can see this post ranked above my webpage.. I really don't understand this

Thread Thread
 
jsn1nj4 profile image
Elliot Derhay • Edited

DEV itself probably has a higher score because of how active it is and all of the Backlinks (including a lot of activity and links on a big social network like Twitter).

Thread Thread
 
mxldevs profile image
MxL Devs

dev.to likely is considered to be more relevant due to its scale. But that shouldn't be seen as a bad thing they're still going to see your article. I would focus on how to brand your posts instead.