Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Internal Stock Request - Many Issues
02-14-2018, 08:29 AM, (This post was last modified: 02-14-2018, 08:58 AM by TurboPT.)
#24
RE: Internal Stock Request - Many Issues
(02-13-2018, 10:37 PM)VortecCPI Wrote: I am such a PHP novice... I had no idea a comma was preferred for printing strings...
I don't know that commas a preferred, per say, as I've been more accustom to the concatenated way with the period. This has come from working with weberp, believe it or not.

I (very recently) first noticed the comma usage with some of Tim's code, and (not immediately noticed) there is mixed use of the two ways within some weberp code areas. With one of the files from Tim, I left those as-is when dropped in, and since the Internal Stock file was getting many changes, I went ahead and converted the concat to commas in the echo's.

For me, I will try to use commas going forward, as I can see there can be a slight performance over the concatenation. However, I do not plan on applying such a change to larger files, but will do so bit-by-bit during edits. Caution has to be taken anyway, for the concatenation in SQL strings must use the period and not a comma, so the change would only be relevant with echo output.
Reply


Messages In This Thread
RE: Internal Stock Request - Many Issues - by TurboPT - 02-14-2018, 08:29 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)